vcomply-workflow-engine 7.1.4 → 7.1.5

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.
@@ -29609,7 +29609,6 @@ class FrequencyResponsibilityListComponent {
29609
29609
  return nameArray[0]?.charAt(0) + nameArray[0]?.charAt(1)?.toUpperCase();
29610
29610
  }
29611
29611
  populateResponsibility() {
29612
- // Allow pre-selection even if assignee / RC are not known.
29613
29612
  if (!this.selectedResponsibilityDetails || !this.selectedResponsibilityDetails.id) {
29614
29613
  return;
29615
29614
  }
@@ -29675,11 +29674,8 @@ class FrequencyOnCompletionOfComponent {
29675
29674
  }
29676
29675
  ngOnInit() {
29677
29676
  this.frequencyInfo = Object.assign(this.frequencyService.frequencyInfo);
29678
- // If we already have a simple onCompletionResponsibility (from edit),
29679
- // hydrate structures so the chip + list can use it.
29680
29677
  if (this.onCompletionResponsibility?.title &&
29681
29678
  !this.selectedResponsibilityDetails?.responsibility) {
29682
- // For chip + frequency calculations we only need title/id
29683
29679
  this.selectedResponsibilityDetails = {
29684
29680
  responsibility: {
29685
29681
  title: this.onCompletionResponsibility.title,
@@ -29696,7 +29692,6 @@ class FrequencyOnCompletionOfComponent {
29696
29692
  responsibilityCenter: null,
29697
29693
  },
29698
29694
  };
29699
- // For list component pre-selection we must match its expected shape
29700
29695
  this.selectedResponsibilityListPrefill = {
29701
29696
  assignee: null,
29702
29697
  responsibilityCenter: null,
@@ -29705,7 +29700,6 @@ class FrequencyOnCompletionOfComponent {
29705
29700
  };
29706
29701
  }
29707
29702
  this.getCompletionReports();
29708
- // Pre-populate selected responsibility when editing an existing frequency
29709
29703
  if (!this.onCompletionResponsibility?.title &&
29710
29704
  this.frequencyData?.onCompletionReportDetails) {
29711
29705
  const details = this.frequencyData.onCompletionReportDetails;
@@ -29749,7 +29743,6 @@ class FrequencyOnCompletionOfComponent {
29749
29743
  }
29750
29744
  onResponsibilitySelection(event) {
29751
29745
  this.selectedResponsibilityDetails = event;
29752
- // Build flat prefill object for list on subsequent edits
29753
29746
  if (event?.eachAssignee && event?.responsibility) {
29754
29747
  this.selectedResponsibilityListPrefill = {
29755
29748
  assignee: event.eachAssignee.assignee,
@@ -29834,7 +29827,6 @@ class FrequencyOnCompletionOfComponent {
29834
29827
  ? Object.keys(this.selectedResponsibilityDetails)?.length > 0
29835
29828
  : false;
29836
29829
  this.frequencyInfo.reportId = 0;
29837
- // Reset placeholder text since no responsibility is selected
29838
29830
  this.frequencyInfo.placeholder =
29839
29831
  this.onCompletionOfInput +
29840
29832
  ' ' +
@@ -34513,7 +34505,6 @@ class WorkflowComplianceComponent {
34513
34505
  };
34514
34506
  }
34515
34507
  else {
34516
- // Fallback: preserve any already-known onCompletionResponsibility
34517
34508
  if (this.responsibilityDetails?.onCompletionResponsibility) {
34518
34509
  this.frequencyDetails.onCompletionReportDetails = {
34519
34510
  report_name: this.responsibilityDetails.onCompletionResponsibility