diff --git a/lib/process-services-cloud/src/lib/screen/components/screen-cloud/screen-cloud.component.ts b/lib/process-services-cloud/src/lib/screen/components/screen-cloud/screen-cloud.component.ts index 849d9cf810..2bbbae195b 100644 --- a/lib/process-services-cloud/src/lib/screen/components/screen-cloud/screen-cloud.component.ts +++ b/lib/process-services-cloud/src/lib/screen/components/screen-cloud/screen-cloud.component.ts @@ -21,6 +21,7 @@ import { ScreenRenderingService } from '../../../services/public-api'; import { MatCardModule } from '@angular/material/card'; import { UserTaskCustomUi } from '../../models/screen-cloud.model'; import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; +import { MatCheckboxChange } from '@angular/material/checkbox'; @Component({ selector: 'adf-cloud-task-screen', @@ -68,6 +69,10 @@ export class TaskScreenCloudComponent implements OnInit { @Input() rootProcessInstanceId: string = ''; + /** Whether the `Open next task` checkbox is checked by default or not. */ + @Input() + isNextTaskCheckboxChecked = false; + /** Emitted when the task is saved. */ @Output() taskSaved = new EventEmitter(); @@ -92,6 +97,10 @@ export class TaskScreenCloudComponent implements OnInit { @Output() unclaimTask = new EventEmitter<any>(); + /** Emitted when the `Open next task` checkbox was toggled. */ + @Output() + nextTaskCheckboxCheckedChanged = new EventEmitter<MatCheckboxChange>(); + @ViewChild('container', { read: ViewContainerRef, static: true }) container: ViewContainerRef; diff --git a/lib/process-services-cloud/src/lib/task/task-form/components/user-task-cloud/user-task-cloud.component.html b/lib/process-services-cloud/src/lib/task/task-form/components/user-task-cloud/user-task-cloud.component.html index b4ef90b183..6df4f081cb 100644 --- a/lib/process-services-cloud/src/lib/task/task-form/components/user-task-cloud/user-task-cloud.component.html +++ b/lib/process-services-cloud/src/lib/task/task-form/components/user-task-cloud/user-task-cloud.component.html @@ -1,4 +1,4 @@ -<div class="adf-user-task-cloud-container"> + <div class="adf-user-task-cloud-container"> <div *ngIf="!loading; else loadingTemplate"> <ng-container [ngSwitch]="taskType"> <ng-container *ngSwitchCase="taskTypeEnum.Form"> @@ -38,12 +38,14 @@ [showCancelButton]="showCancelButton" [taskName]="taskDetails.name" [taskId]="taskId" + (cancelTask)="onCancelClick()" (claimTask)="onClaimTask()" (error)="onError($event)" (taskCompleted)="onCompleteTask()" (taskSaved)="onFormSaved()" (unclaimTask)="onUnclaimTask()" + (nextTaskCheckboxCheckedChanged)="onNextTaskCheckboxCheckedChanged($event)" /> </ng-container>