@valtimo/task 5.5.0 → 5.6.0
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/esm2020/lib/task-detail-modal/task-detail-modal.component.mjs +22 -13
- package/fesm2015/valtimo-task.mjs +20 -11
- package/fesm2015/valtimo-task.mjs.map +1 -1
- package/fesm2020/valtimo-task.mjs +20 -11
- package/fesm2020/valtimo-task.mjs.map +1 -1
- package/lib/task-detail-modal/task-detail-modal.component.d.ts +8 -4
- package/lib/task-detail-modal/task-detail-modal.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"valtimo-task.mjs","sources":["../../../../projects/valtimo/task/src/lib/models/task-list.model.ts","../../../../projects/valtimo/task/src/lib/models/index.ts","../../../../projects/valtimo/task/src/lib/task.service.ts","../../../../projects/valtimo/task/src/lib/assign-user-to-task/assign-user-to-task.component.ts","../../../../projects/valtimo/task/src/lib/assign-user-to-task/assign-user-to-task.component.html","../../../../projects/valtimo/task/src/lib/task-detail-modal/task-detail-modal.component.ts","../../../../projects/valtimo/task/src/lib/task-detail-modal/task-detail-modal.component.html","../../../../projects/valtimo/task/src/lib/task-list/task-list.component.ts","../../../../projects/valtimo/task/src/lib/task-list/task-list.component.html","../../../../projects/valtimo/task/src/lib/task-routing.module.ts","../../../../projects/valtimo/task/src/lib/task.module.ts","../../../../projects/valtimo/task/src/public_api.ts","../../../../projects/valtimo/task/src/valtimo-task.ts"],"sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport class TaskList {\n public tasks = [];\n fields = [];\n pagination = {\n collectionSize: 0,\n page: 1,\n size: 10,\n maxPaginationItemSize: 5,\n };\n page = 0;\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './task.model';\nexport * from './task-definition.model';\nexport * from './task-list.model';\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {HttpClient} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {AssigneeRequest, Task, TaskProcessLinkResult} from './models';\nimport {ConfigService, CustomTaskList, User} from '@valtimo/config';\n\n@Injectable({providedIn: 'root'})\nexport class TaskService {\n private valtimoEndpointUri: string;\n\n constructor(private http: HttpClient, private readonly configService: ConfigService) {\n this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;\n }\n\n queryTasks(params?: any): Observable<any> {\n return this.http.get(`${this.valtimoEndpointUri}task`, {observe: 'response', params});\n }\n\n getTasks(): Observable<Task[]> {\n return this.http.get<Task[]>(`${this.valtimoEndpointUri}task?filter=all`);\n }\n\n getTask(id: string): Observable<any> {\n return this.http.get(this.valtimoEndpointUri + 'task/' + id);\n }\n\n getCandidateUsers(id: string): Observable<User[]> {\n return this.http.get<User[]>(this.valtimoEndpointUri + 'task/' + id + '/candidate-user');\n }\n\n assignTask(id: string, assigneeRequest: AssigneeRequest): Observable<any> {\n return this.http.post(this.valtimoEndpointUri + 'task/' + id + '/assign', assigneeRequest);\n }\n\n unassignTask(id: string): Observable<any> {\n return this.http.post(this.valtimoEndpointUri + 'task/' + id + '/unassign', null);\n }\n\n completeTask(id: string, variables: Map<string, any>): Observable<any> {\n return this.http.post(this.valtimoEndpointUri + 'task/' + id + '/complete', {\n variables,\n filesToDelete: [],\n });\n }\n\n getTaskProcessLink(taskId: string): Observable<TaskProcessLinkResult> {\n return this.http.get<TaskProcessLinkResult>(\n `${this.valtimoEndpointUri}process-link/task/${taskId}`\n );\n }\n\n getConfigCustomTaskList(): CustomTaskList {\n return this.configService.config.customTaskList;\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Component,\n EventEmitter,\n Input,\n OnChanges,\n OnInit,\n Output,\n SimpleChanges,\n} from '@angular/core';\nimport {DropdownItem} from '@valtimo/components';\nimport {BehaviorSubject, combineLatest} from 'rxjs';\nimport {take, tap} from 'rxjs/operators';\nimport {TaskService} from '../task.service';\nimport {User} from '@valtimo/config';\n\n@Component({\n selector: 'valtimo-assign-user-to-task',\n templateUrl: './assign-user-to-task.component.html',\n styleUrls: ['./assign-user-to-task.component.scss'],\n})\nexport class AssignUserToTaskComponent implements OnInit, OnChanges {\n @Input() taskId: string;\n @Input() assigneeEmail: string;\n @Output() assignmentOfTaskChanged = new EventEmitter();\n\n candidateUsersForTask$ = new BehaviorSubject<User[]>(undefined);\n disabled$ = new BehaviorSubject<boolean>(true);\n assignedEmailOnServer$ = new BehaviorSubject<string>(null);\n userEmailToAssign: string = null;\n assignedUserFullName$ = new BehaviorSubject<string>(null);\n\n constructor(private taskService: TaskService) {}\n\n ngOnInit(): void {\n this.taskService.getCandidateUsers(this.taskId).subscribe(candidateUsers => {\n this.candidateUsersForTask$.next(candidateUsers);\n if (this.assigneeEmail) {\n this.assignedEmailOnServer$.next(this.assigneeEmail);\n this.userEmailToAssign = this.assigneeEmail;\n this.assignedUserFullName$.next(\n this.getAssignedUserName(candidateUsers, this.assigneeEmail)\n );\n }\n this.enable();\n });\n }\n\n ngOnChanges(changes: SimpleChanges) {\n const assigneeEmail = changes.assigneeEmail;\n if (assigneeEmail) {\n this.candidateUsersForTask$.pipe(take(1)).subscribe(candidateUsers => {\n const currentUserEmail = assigneeEmail.currentValue;\n this.assignedEmailOnServer$.next(currentUserEmail || null);\n this.userEmailToAssign = currentUserEmail || null;\n this.assignedUserFullName$.next(this.getAssignedUserName(candidateUsers, currentUserEmail));\n });\n } else {\n this.clear();\n }\n }\n\n assignTask(userEmail: string): void {\n this.disable();\n combineLatest([\n this.candidateUsersForTask$,\n this.taskService.assignTask(this.taskId, {assignee: userEmail}),\n ])\n .pipe(\n take(1),\n tap(([candidateUsers]) => {\n this.userEmailToAssign = userEmail;\n this.assignedEmailOnServer$.next(userEmail);\n this.assignedUserFullName$.next(this.getAssignedUserName(candidateUsers, userEmail));\n this.emitChange();\n this.enable();\n })\n )\n .subscribe();\n }\n\n unassignTask(): void {\n this.disable();\n this.taskService\n .unassignTask(this.taskId)\n .pipe(\n tap(() => {\n this.clear();\n this.emitChange();\n this.enable();\n })\n )\n .subscribe();\n }\n\n getAssignedUserName(users: User[], userEmail: string): string {\n if (users && userEmail) {\n const findUser = users.find(user => user.email === userEmail);\n return findUser ? findUser.fullName : '';\n }\n return '';\n }\n\n mapUsersForDropdown(users: User[]): DropdownItem[] {\n return (\n users &&\n users\n .map(user => ({...user, lastName: user.lastName?.split(' ').splice(-1)[0] || ''}))\n .sort((a, b) => a.lastName.localeCompare(b.lastName))\n .map(user => ({text: user.fullName, id: user.email}))\n );\n }\n\n private clear(): void {\n this.assignedEmailOnServer$.next(null);\n this.userEmailToAssign = null;\n }\n\n private emitChange(): void {\n this.assignmentOfTaskChanged.emit();\n }\n\n private enable(): void {\n this.disabled$.next(false);\n }\n\n private disable(): void {\n this.disabled$.next(true);\n }\n}\n","<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container\n *ngIf=\"{\n candidateUsers: candidateUsersForTask$ | async,\n disabled: disabled$ | async,\n emailOnServer: assignedEmailOnServer$ | async\n } as obs\"\n>\n <div class=\"container-fluid\">\n <div class=\"row mt-2 mb-2\">\n <div class=\"col-12 pl-0 d-flex flex-row align-items-center\">\n <ng-container *ngIf=\"obs.candidateUsers; else loading\">\n <valtimo-searchable-dropdown-select\n [style]=\"'underlinedText'\"\n [items]=\"mapUsersForDropdown(obs.candidateUsers)\"\n [buttonText]=\"'assignTask.header' | translate\"\n [searchText]=\"'interface.typeToSearch' | translate\"\n [noResultsText]=\"'interface.noSearchResults' | translate\"\n [disabled]=\"obs.disabled\"\n [selectedText]=\"'assignTask.assignedTo' | translate\"\n [selectedTextValue]=\"assignedUserFullName$ | async\"\n [clearSelectionButtonTitle]=\"'assignTask.remove' | translate\"\n [hasSelection]=\"userEmailToAssign === obs.emailOnServer && obs.emailOnServer !== null\"\n [width]=\"250\"\n (itemSelected)=\"assignTask($event)\"\n (clearSelection)=\"unassignTask()\"\n >\n </valtimo-searchable-dropdown-select>\n </ng-container>\n </div>\n </div>\n </div>\n</ng-container>\n\n<ng-template #loading>\n <h5>\n <b>{{ 'assignTask.fetchingUsers' | translate }}</b>\n </h5>\n</ng-template>\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, EventEmitter, Output, ViewChild, ViewEncapsulation} from '@angular/core';\nimport {ActivatedRoute, Router} from '@angular/router';\nimport {FormioComponent, FormioOptionsImpl, FormioSubmission, ModalComponent, ValtimoFormioOptions} from '@valtimo/components';\nimport {Task, TaskProcessLinkType} from '../models';\nimport {\n FormAssociation,\n FormFlowInstance,\n FormFlowService,\n FormFlowStepType,\n FormLinkService,\n FormSubmissionResult\n} from '@valtimo/form-link';\nimport {FormioForm} from '@formio/angular';\nimport moment from 'moment';\nimport {NGXLogger} from 'ngx-logger';\nimport {ToastrService} from 'ngx-toastr';\nimport {map, take} from 'rxjs/operators';\nimport {TaskService} from '../task.service';\nimport {BehaviorSubject} from 'rxjs';\n\nmoment.locale(localStorage.getItem('langKey') || '');\n\n@Component({\n selector: 'valtimo-task-detail-modal',\n templateUrl: './task-detail-modal.component.html',\n styleUrls: ['./task-detail-modal.component.scss'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class TaskDetailModalComponent {\n @ViewChild('form') form: FormioComponent;\n @ViewChild('taskDetailModal') modal: ModalComponent;\n @Output() formSubmit = new EventEmitter();\n @Output() assignmentOfTaskChanged = new EventEmitter();\n\n public task: Task | null = null;\n public formDefinition: FormioForm;\n public formFlowInstanceId: string;\n public formFlowStepInstanceId?: string;\n public page: any = null;\n public formioOptions: ValtimoFormioOptions;\n public errorMessage: string = null;\n\n private formAssociation: FormAssociation;\n private taskProcessLinkType$ = new BehaviorSubject<TaskProcessLinkType | null>(null);\n\n processLinkIsForm$ = this.taskProcessLinkType$.pipe(map(type => type === 'form'));\n processLinkIsFormFlow$ = this.taskProcessLinkType$.pipe(map(type => type === 'form-flow'));\n\n private formFlowStepType$ = new BehaviorSubject<FormFlowStepType | null>(null);\n formFlowStepTypeIsForm$ = this.formFlowStepType$.pipe(map( type => type === 'form'));\n\n constructor(\n private readonly toastr: ToastrService,\n private readonly formLinkService: FormLinkService,\n private readonly formFlowService: FormFlowService,\n private readonly router: Router,\n private readonly logger: NGXLogger,\n private readonly route: ActivatedRoute,\n private readonly taskService: TaskService\n ) {\n this.formioOptions = new FormioOptionsImpl();\n this.formioOptions.disableAlerts = true;\n }\n\n openTaskDetails(task: Task) {\n this.resetTaskProcessLinkType();\n this.resetFormDefinition();\n this.getTaskProcessLink(task.id);\n\n this.task = task;\n this.page = {\n title: task.name,\n subtitle: `Created ${task.created}`,\n };\n\n this.formLinkService\n .getPreFilledFormDefinitionByFormLinkId(\n task.processDefinitionKey,\n task.businessKey,\n task.taskDefinitionKey,\n task.id // taskInstanceId\n )\n .subscribe(\n formDefinition => {\n this.formAssociation = formDefinition.formAssociation;\n\n const className = this.formAssociation.formLink.className.split('.');\n const linkType = className[className.length - 1];\n\n switch (linkType) {\n case 'BpmnElementFormIdLink':\n this.setFormDefinitionAndOpenModal(formDefinition);\n break;\n case 'BpmnElementFormFlowIdLink':\n // We can't use the formDefinition here because the form definition is provided per form flow step\n // I'm still leaving this in here in case we want to add form flow specific code.\n break;\n case 'BpmnElementUrlLink':\n this.openUrlLink(formDefinition);\n break;\n case 'BpmnElementAngularStateUrlLink':\n this.openAngularStateUrlLink(task, formDefinition);\n break;\n default:\n this.logger.fatal('Unsupported class name');\n }\n },\n errors => {\n if (errors?.error?.detail) {\n this.errorMessage = errors.error.detail;\n }\n\n this.modal.show();\n }\n );\n }\n\n public gotoFormLinkScreen(): void {\n this.modal.hide();\n this.router.navigate(['form-links']);\n }\n\n public onSubmit(submission: FormioSubmission): void {\n if (this.taskProcessLinkType$.getValue() === 'form') {\n this.formLinkService\n .onSubmit(\n this.task.processDefinitionKey,\n this.formAssociation.formLink.id,\n submission.data,\n this.task.businessKey,\n this.task.id\n )\n .subscribe(\n (_: FormSubmissionResult) => {\n this.completeTask();\n },\n errors => {\n this.form.showErrors(errors);\n }\n );\n }\n\n if (this.taskProcessLinkType$.getValue() === 'form-flow') {\n if (submission.data.submit) {\n this.formFlowService.submitStep(this.formFlowInstanceId, this.formFlowStepInstanceId, submission.data).subscribe(\n (result: FormFlowInstance) => this.handleFormFlowStep(result),\n errors => this.form.showErrors(errors)\n );\n } else if (submission.data['back']) {\n this.formFlowService.back(this.formFlowInstanceId).subscribe(\n (result: FormFlowInstance) => this.handleFormFlowStep(result),\n errors => this.form.showErrors(errors)\n );\n }\n }\n }\n\n private resetFormDefinition(): void {\n this.formDefinition = null;\n }\n\n private getTaskProcessLink(taskId: string): void {\n this.taskService.getTaskProcessLink(taskId).subscribe(res => {\n switch (res?.type) {\n case 'form':\n this.taskProcessLinkType$.next('form');\n break;\n case 'form-flow':\n this.taskProcessLinkType$.next('form-flow');\n this.getFormFlowStep(res?.properties.formFlowInstanceId)\n break;\n }\n });\n }\n\n private getFormFlowStep(formFlowInstanceId: string): void {\n this.formFlowService.getFormFlowStep(formFlowInstanceId).subscribe(\n (result: FormFlowInstance) => {\n this.handleFormFlowStep(result)\n }\n );\n }\n\n private handleFormFlowStep(formFlowInstance: FormFlowInstance) {\n if (formFlowInstance.step === null) {\n this.formFlowStepType$.next(null);\n this.formFlowInstanceId = null;\n this.formFlowStepInstanceId = null;\n this.completeTask()\n } else {\n this.formFlowStepType$.next(formFlowInstance.step.type);\n this.formFlowInstanceId = formFlowInstance.id;\n this.formFlowStepInstanceId = formFlowInstance.step.id;\n this.setFormDefinitionAndOpenModal(formFlowInstance.step.typeProperties.definition);\n }\n }\n\n private completeTask() {\n this.toastr.success(this.task.name + ' has successfully been completed');\n this.modal.hide();\n this.task = null;\n this.formSubmit.emit();\n }\n\n private resetTaskProcessLinkType(): void {\n this.taskProcessLinkType$.next(null);\n }\n\n private setFormDefinitionAndOpenModal(formDefinition: any): void {\n this.formDefinition = formDefinition;\n this.modal.show();\n }\n\n private openUrlLink(formDefinition: any): void {\n const url = this.router.serializeUrl(\n this.router.createUrlTree([formDefinition.formAssociation.formLink.url])\n );\n\n window.open(url, '_blank');\n }\n\n private openAngularStateUrlLink(task: Task, formDefinition: any): void {\n this.route.params.pipe(take(1)).subscribe(params => {\n const taskId = task?.id;\n const documentId = params?.documentId;\n\n this.router.navigate([formDefinition.formAssociation.formLink.url], {\n state: {\n ...(taskId && {taskId}),\n ...(documentId && {documentId}),\n },\n });\n });\n }\n}\n","<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-modal\n #taskDetailModal\n elementId=\"taskDetailModal\"\n [title]=\"page?.title\"\n [subtitle]=\"page?.subtitle\"\n [templateBelowSubtitle]=\"assignUserToTask\"\n>\n <div body *ngIf=\"formDefinition && ((processLinkIsForm$ | async) || (formFlowStepTypeIsForm$ | async))\">\n <valtimo-form-io\n #form\n [form]=\"formDefinition\"\n (submit)=\"onSubmit($event)\"\n [options]=\"formioOptions\"\n ></valtimo-form-io>\n </div>\n <div body *ngIf=\"!formDefinition && !errorMessage\">\n <div\n class=\"bg-warning text-black mb-0 p-3 text-center\"\n [translate]=\"'formManagement.noFormDefinitionFound'\"\n ></div>\n </div>\n <div body *ngIf=\"errorMessage\">\n <div class=\"bg-danger text-black mb-0 p-3 text-center\">\n {{ errorMessage }}\n </div>\n </div>\n <div footer>\n <div class=\"mb-0 p-3 text-center\" *ngIf=\"!formDefinition\">\n <button\n class=\"btn btn-secondary btn-space\"\n type=\"button\"\n (click)=\"gotoFormLinkScreen()\"\n id=\"form-link-button\"\n >\n {{ 'formManagement.gotoFormLinksButton' | translate }}\n </button>\n </div>\n </div>\n</valtimo-modal>\n\n<ng-template #assignUserToTask>\n <valtimo-assign-user-to-task\n *ngIf=\"task && assignmentOfTaskChanged\"\n [taskId]=\"task.id\"\n [assigneeEmail]=\"task.assignee\"\n (assignmentOfTaskChanged)=\"assignmentOfTaskChanged.emit()\"\n ></valtimo-assign-user-to-task>\n</ng-template>\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, OnDestroy, ViewChild, ViewEncapsulation} from '@angular/core';\nimport {Router} from '@angular/router';\nimport {TaskService} from '../task.service';\nimport moment from 'moment';\nimport {Task, TaskList} from '../models';\nimport {NGXLogger} from 'ngx-logger';\nimport {TaskDetailModalComponent} from '../task-detail-modal/task-detail-modal.component';\nimport {TranslateService} from '@ngx-translate/core';\nimport {combineLatest, Subscription} from 'rxjs';\nimport {SortState} from '@valtimo/config';\n\nmoment.locale(localStorage.getItem('langKey') || '');\n\n@Component({\n selector: 'valtimo-task-list',\n templateUrl: './task-list.component.html',\n styleUrls: ['./task-list.component.scss'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class TaskListComponent implements OnDestroy {\n @ViewChild('taskDetail') taskDetail: TaskDetailModalComponent;\n public tasks = {\n mine: new TaskList(),\n open: new TaskList(),\n all: new TaskList(),\n };\n public currentTaskType = 'mine';\n public listTitle: string | null = null;\n public listDescription: string | null = null;\n public sortState: SortState | null = null;\n private translationSubscription: Subscription;\n\n public paginationClicked(page: number, type: string) {\n this.tasks[type].page = page - 1;\n this.getTasks(type);\n }\n\n constructor(\n private taskService: TaskService,\n private router: Router,\n private logger: NGXLogger,\n private translateService: TranslateService\n ) {\n this.setDefaultSorting();\n }\n\n paginationSet() {\n this.tasks.mine.pagination.size =\n this.tasks.all.pagination.size =\n this.tasks.open.pagination.size =\n this.tasks[this.currentTaskType].pagination.size;\n this.getTasks(this.currentTaskType);\n }\n\n private clearPagination(type: string) {\n this.tasks[type].page = 0;\n }\n\n tabChange(tab) {\n this.clearPagination(this.currentTaskType);\n\n switch (tab.nextId) {\n case 1:\n this.getTasks('mine');\n break;\n case 2:\n this.getTasks('open');\n break;\n case 3:\n this.getTasks('all');\n break;\n default:\n this.logger.fatal('Unreachable case');\n }\n }\n\n showTask(task) {\n this.router.navigate(['tasks', task.id]);\n }\n\n getTasks(type: string) {\n let params: any;\n\n this.translationSubscription = combineLatest([\n this.translateService.stream(`task-list.${type}.title`),\n this.translateService.stream(`task-list.${type}.description`),\n ]).subscribe(([title, description]) => {\n this.listTitle = title;\n this.listDescription = description;\n });\n\n switch (type) {\n case 'mine':\n params = {\n page: this.tasks.mine.page,\n size: this.tasks.mine.pagination.size,\n filter: 'mine',\n };\n this.currentTaskType = 'mine';\n break;\n case 'open':\n params = {\n page: this.tasks.open.page,\n size: this.tasks.open.pagination.size,\n filter: 'open',\n };\n this.currentTaskType = 'open';\n break;\n case 'all':\n params = {page: this.tasks.all.page, size: this.tasks.open.pagination.size, filter: 'all'};\n this.currentTaskType = 'all';\n break;\n default:\n this.logger.fatal('Unreachable case');\n }\n\n if (this.sortState) {\n params.sort = this.getSortString(this.sortState);\n }\n\n this.taskService.queryTasks(params).subscribe((results: any) => {\n this.tasks[type].pagination.collectionSize = results.headers.get('x-total-count');\n this.tasks[type].tasks = results.body as Array<Task>;\n this.tasks[type].tasks.map((task: Task) => {\n task.created = moment(task.created).format('DD MMM YYYY HH:mm');\n if (task.due) {\n task.due = moment(task.due).format('DD MMM YYYY HH:mm');\n }\n });\n if (this.taskService.getConfigCustomTaskList()) {\n this.customTaskListFields(type);\n } else {\n this.defaultTaskListFields(type);\n }\n });\n }\n\n public defaultTaskListFields(type) {\n this.translationSubscription = combineLatest([\n this.translateService.stream(`task-list.fieldLabels.created`),\n this.translateService.stream(`task-list.fieldLabels.name`),\n this.translateService.stream(`task-list.fieldLabels.valtimoAssignee.fullName`),\n this.translateService.stream(`task-list.fieldLabels.due`),\n ]).subscribe(([created, name, assignee, due]) => {\n this.tasks[type].fields = [\n {\n key: 'created',\n label: created,\n },\n {\n key: 'name',\n label: name,\n },\n {\n key: 'valtimoAssignee.fullName',\n label: assignee,\n },\n {\n key: 'due',\n label: due,\n },\n ];\n });\n }\n\n public customTaskListFields(type) {\n const customTaskListFields = this.taskService.getConfigCustomTaskList().fields;\n\n this.translationSubscription = combineLatest(\n customTaskListFields.map(column =>\n this.translateService.stream(`task-list.fieldLabels.${column.translationKey}`)\n )\n ).subscribe(labels => {\n this.tasks[type].fields = customTaskListFields.map((column, index) => ({\n key: column.propertyName,\n label: labels[index],\n sortable: column.sortable,\n ...(column.viewType && {viewType: column.viewType}),\n }));\n });\n }\n\n public rowOpenTaskClick(task) {\n if (!task.endTime) {\n this.taskDetail.openTaskDetails(task);\n } else {\n return false;\n }\n }\n\n setDefaultSorting() {\n this.sortState = this.taskService.getConfigCustomTaskList()?.defaultSortedColumn || null;\n }\n\n public sortChanged(sortState: SortState) {\n this.sortState = sortState;\n this.getTasks(this.currentTaskType);\n }\n\n getSortString(sort: SortState): string {\n return `${sort.state.name},${sort.state.direction}`;\n }\n\n ngOnDestroy(): void {\n this.translationSubscription.unsubscribe();\n }\n}\n","<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"main-content\">\n <div class=\"container-fluid\">\n <valtimo-widget>\n <valtimo-list\n [items]=\"tasks[currentTaskType].tasks\"\n [fields]=\"tasks[currentTaskType].fields\"\n [pagination]=\"tasks[currentTaskType].pagination\"\n [viewMode]=\"true\"\n (paginationClicked)=\"paginationClicked($event, currentTaskType)\"\n (paginationSet)=\"paginationSet()\"\n paginationIdentifier=\"taskList\"\n [isSearchable]=\"true\"\n [header]=\"true\"\n (rowClicked)=\"rowOpenTaskClick($event)\"\n (sortChanged)=\"sortChanged($event)\"\n >\n <div header>\n <h3 class=\"list-header-title\">{{ listTitle }}</h3>\n <h5 class=\"list-header-description\">{{ listDescription }}</h5>\n </div>\n <div tabs>\n <ul ngbNav [destroyOnHide]=\"false\" (navChange)=\"tabChange($event)\" class=\"nav-tabs\">\n <li [ngbNavItem]=\"1\" [title]=\"'task-list.mine.title' | translate\">\n <a ngbNavLink>{{ 'task-list.mine.title' | translate }}</a>\n </li>\n <li [ngbNavItem]=\"2\" [title]=\"'task-list.open.title' | translate\">\n <a ngbNavLink>{{ 'task-list.open.title' | translate }}</a>\n </li>\n <li [ngbNavItem]=\"3\" [title]=\"'task-list.all.title' | translate\">\n <a ngbNavLink>{{ 'task-list.all.title' | translate }}</a>\n </li>\n </ul>\n </div>\n </valtimo-list>\n </valtimo-widget>\n <valtimo-task-detail-modal\n #taskDetail\n (formSubmit)=\"getTasks(currentTaskType)\"\n (assignmentOfTaskChanged)=\"getTasks(currentTaskType)\"\n ></valtimo-task-detail-modal>\n </div>\n</div>\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {RouterModule, Routes} from '@angular/router';\nimport {CommonModule} from '@angular/common';\nimport {AuthGuardService} from '@valtimo/security';\nimport {TaskListComponent} from './task-list/task-list.component';\nimport {ROLE_USER} from '@valtimo/config';\n\nconst routes: Routes = [\n {\n path: 'tasks',\n component: TaskListComponent,\n canActivate: [AuthGuardService],\n data: {title: 'Tasks', roles: [ROLE_USER]},\n },\n];\n\n@NgModule({\n declarations: [],\n imports: [CommonModule, RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class TaskRoutingModule {}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {CommonModule} from '@angular/common';\nimport {HttpClient} from '@angular/common/http';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {BrowserAnimationsModule} from '@angular/platform-browser/animations';\nimport {NgbModule} from '@ng-bootstrap/ng-bootstrap';\nimport {TranslateLoader, TranslateModule} from '@ngx-translate/core';\nimport {\n CamundaFormModule,\n FormIoModule,\n ListModule,\n ModalModule,\n PageHeaderModule,\n SpinnerModule,\n WidgetModule,\n SearchableDropdownSelectModule,\n} from '@valtimo/components';\nimport {HttpLoaderFactory} from '@valtimo/config';\nimport {ToastrModule} from 'ngx-toastr';\nimport {TaskDetailModalComponent} from './task-detail-modal/task-detail-modal.component';\nimport {TaskListComponent} from './task-list/task-list.component';\nimport {TaskRoutingModule} from './task-routing.module';\nimport {AssignUserToTaskComponent} from './assign-user-to-task/assign-user-to-task.component';\n\n@NgModule({\n declarations: [TaskListComponent, TaskDetailModalComponent, AssignUserToTaskComponent],\n imports: [\n CommonModule,\n TaskRoutingModule,\n ListModule,\n PageHeaderModule,\n WidgetModule,\n SpinnerModule,\n SearchableDropdownSelectModule,\n CamundaFormModule,\n BrowserAnimationsModule,\n FormsModule,\n ToastrModule.forRoot({\n positionClass: 'toast-bottom-full-width',\n preventDuplicates: true,\n }),\n TranslateModule.forRoot({\n loader: {\n provide: TranslateLoader,\n useFactory: HttpLoaderFactory,\n deps: [HttpClient],\n },\n }),\n NgbModule,\n FormIoModule,\n ModalModule,\n ],\n exports: [TaskListComponent, TaskDetailModalComponent, AssignUserToTaskComponent],\n})\nexport class TaskModule {}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of task\n */\n\nexport * from './lib/models';\nexport * from './lib/task.service';\nexport * from './lib/task.module';\nexport * from './lib/task-detail-modal/task-detail-modal.component';\nexport * from './lib/task-list/task-list.component';\nexport * from './lib/assign-user-to-task/assign-user-to-task.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1.TaskService","i2","i1","i3","i4","i5.TaskService","i7.AssignUserToTaskComponent","i8","i9","i5","i6.TaskDetailModalComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;AAcG;MAEU,QAAQ,CAAA;AAArB,IAAA,WAAA,GAAA;AACS,QAAA,IAAK,CAAA,KAAA,GAAG,EAAE,CAAC;AAClB,QAAA,IAAM,CAAA,MAAA,GAAG,EAAE,CAAC;QACZ,IAAA,CAAA,UAAU,GAAG;AACX,YAAA,cAAc,EAAE,CAAC;AACjB,YAAA,IAAI,EAAE,CAAC;AACP,YAAA,IAAI,EAAE,EAAE;AACR,YAAA,qBAAqB,EAAE,CAAC;SACzB,CAAC;AACF,QAAA,IAAI,CAAA,IAAA,GAAG,CAAC,CAAC;KACV;AAAA;;AC1BD;;;;;;;;;;;;;;AAcG;;ACdH;;;;;;;;;;;;;;AAcG;MASU,WAAW,CAAA;IAGtB,WAAoB,CAAA,IAAgB,EAAmB,aAA4B,EAAA;AAA/D,QAAA,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAY;AAAmB,QAAA,IAAa,CAAA,aAAA,GAAb,aAAa,CAAe;QACjF,IAAI,CAAC,kBAAkB,GAAG,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC;KACvE;AAED,IAAA,UAAU,CAAC,MAAY,EAAA;QACrB,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA,EAAG,IAAI,CAAC,kBAAkB,MAAM,EAAE,EAAC,OA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BAAA,iBAAiB,EAAE,IAAI;aACxB,CAAC;YACF,eAAe,CAAC,OAAO,CAAC;AACtB,gBAAA,MAAM,EAAE;AACN,oBAAA,OAAO,EAAE,eAAe;AACxB,oBAAA,UAAU,EAAE,iBAAiB;oBAC7B,IAAI,EAAE,CAAC,UAAU,CAAC;AACnB,iBAAA;aACF,CAAC;YACF,SAAS;YACT,YAAY;YACZ,WAAW;SACZ,CAAA,EAAA,CAAA,CAAA;4FAGU,UAAU,EAAA,UAAA,EAAA,CAAA;kBA9BtB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,iBAAiB,EAAE,wBAAwB,EAAE,yBAAyB,CAAC;AACtF,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,iBAAiB;wBACjB,UAAU;wBACV,gBAAgB;wBAChB,YAAY;wBACZ,aAAa;wBACb,8BAA8B;wBAC9B,iBAAiB;wBACjB,uBAAuB;wBACvB,WAAW;wBACX,YAAY,CAAC,OAAO,CAAC;AACnB,4BAAA,aAAa,EAAE,yBAAyB;AACxC,4BAAA,iBAAiB,EAAE,IAAI;yBACxB,CAAC;wBACF,eAAe,CAAC,OAAO,CAAC;AACtB,4BAAA,MAAM,EAAE;AACN,gCAAA,OAAO,EAAE,eAAe;AACxB,gCAAA,UAAU,EAAE,iBAAiB;gCAC7B,IAAI,EAAE,CAAC,UAAU,CAAC;AACnB,6BAAA;yBACF,CAAC;wBACF,SAAS;wBACT,YAAY;wBACZ,WAAW;AACZ,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,iBAAiB,EAAE,wBAAwB,EAAE,yBAAyB,CAAC;iBAClF,CAAA;;;ACrED;;;;;;;;;;;;;;AAcG;;ACdH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"valtimo-task.mjs","sources":["../../../../projects/valtimo/task/src/lib/models/task-list.model.ts","../../../../projects/valtimo/task/src/lib/models/index.ts","../../../../projects/valtimo/task/src/lib/task.service.ts","../../../../projects/valtimo/task/src/lib/assign-user-to-task/assign-user-to-task.component.ts","../../../../projects/valtimo/task/src/lib/assign-user-to-task/assign-user-to-task.component.html","../../../../projects/valtimo/task/src/lib/task-detail-modal/task-detail-modal.component.ts","../../../../projects/valtimo/task/src/lib/task-detail-modal/task-detail-modal.component.html","../../../../projects/valtimo/task/src/lib/task-list/task-list.component.ts","../../../../projects/valtimo/task/src/lib/task-list/task-list.component.html","../../../../projects/valtimo/task/src/lib/task-routing.module.ts","../../../../projects/valtimo/task/src/lib/task.module.ts","../../../../projects/valtimo/task/src/public_api.ts","../../../../projects/valtimo/task/src/valtimo-task.ts"],"sourcesContent":["/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport class TaskList {\n public tasks = [];\n fields = [];\n pagination = {\n collectionSize: 0,\n page: 1,\n size: 10,\n maxPaginationItemSize: 5,\n };\n page = 0;\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './task.model';\nexport * from './task-definition.model';\nexport * from './task-list.model';\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {HttpClient} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {AssigneeRequest, Task, TaskProcessLinkResult} from './models';\nimport {ConfigService, CustomTaskList, User} from '@valtimo/config';\n\n@Injectable({providedIn: 'root'})\nexport class TaskService {\n private valtimoEndpointUri: string;\n\n constructor(private http: HttpClient, private readonly configService: ConfigService) {\n this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;\n }\n\n queryTasks(params?: any): Observable<any> {\n return this.http.get(`${this.valtimoEndpointUri}task`, {observe: 'response', params});\n }\n\n getTasks(): Observable<Task[]> {\n return this.http.get<Task[]>(`${this.valtimoEndpointUri}task?filter=all`);\n }\n\n getTask(id: string): Observable<any> {\n return this.http.get(this.valtimoEndpointUri + 'task/' + id);\n }\n\n getCandidateUsers(id: string): Observable<User[]> {\n return this.http.get<User[]>(this.valtimoEndpointUri + 'task/' + id + '/candidate-user');\n }\n\n assignTask(id: string, assigneeRequest: AssigneeRequest): Observable<any> {\n return this.http.post(this.valtimoEndpointUri + 'task/' + id + '/assign', assigneeRequest);\n }\n\n unassignTask(id: string): Observable<any> {\n return this.http.post(this.valtimoEndpointUri + 'task/' + id + '/unassign', null);\n }\n\n completeTask(id: string, variables: Map<string, any>): Observable<any> {\n return this.http.post(this.valtimoEndpointUri + 'task/' + id + '/complete', {\n variables,\n filesToDelete: [],\n });\n }\n\n getTaskProcessLink(taskId: string): Observable<TaskProcessLinkResult> {\n return this.http.get<TaskProcessLinkResult>(\n `${this.valtimoEndpointUri}process-link/task/${taskId}`\n );\n }\n\n getConfigCustomTaskList(): CustomTaskList {\n return this.configService.config.customTaskList;\n }\n}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Component,\n EventEmitter,\n Input,\n OnChanges,\n OnInit,\n Output,\n SimpleChanges,\n} from '@angular/core';\nimport {DropdownItem} from '@valtimo/components';\nimport {BehaviorSubject, combineLatest} from 'rxjs';\nimport {take, tap} from 'rxjs/operators';\nimport {TaskService} from '../task.service';\nimport {User} from '@valtimo/config';\n\n@Component({\n selector: 'valtimo-assign-user-to-task',\n templateUrl: './assign-user-to-task.component.html',\n styleUrls: ['./assign-user-to-task.component.scss'],\n})\nexport class AssignUserToTaskComponent implements OnInit, OnChanges {\n @Input() taskId: string;\n @Input() assigneeEmail: string;\n @Output() assignmentOfTaskChanged = new EventEmitter();\n\n candidateUsersForTask$ = new BehaviorSubject<User[]>(undefined);\n disabled$ = new BehaviorSubject<boolean>(true);\n assignedEmailOnServer$ = new BehaviorSubject<string>(null);\n userEmailToAssign: string = null;\n assignedUserFullName$ = new BehaviorSubject<string>(null);\n\n constructor(private taskService: TaskService) {}\n\n ngOnInit(): void {\n this.taskService.getCandidateUsers(this.taskId).subscribe(candidateUsers => {\n this.candidateUsersForTask$.next(candidateUsers);\n if (this.assigneeEmail) {\n this.assignedEmailOnServer$.next(this.assigneeEmail);\n this.userEmailToAssign = this.assigneeEmail;\n this.assignedUserFullName$.next(\n this.getAssignedUserName(candidateUsers, this.assigneeEmail)\n );\n }\n this.enable();\n });\n }\n\n ngOnChanges(changes: SimpleChanges) {\n const assigneeEmail = changes.assigneeEmail;\n if (assigneeEmail) {\n this.candidateUsersForTask$.pipe(take(1)).subscribe(candidateUsers => {\n const currentUserEmail = assigneeEmail.currentValue;\n this.assignedEmailOnServer$.next(currentUserEmail || null);\n this.userEmailToAssign = currentUserEmail || null;\n this.assignedUserFullName$.next(this.getAssignedUserName(candidateUsers, currentUserEmail));\n });\n } else {\n this.clear();\n }\n }\n\n assignTask(userEmail: string): void {\n this.disable();\n combineLatest([\n this.candidateUsersForTask$,\n this.taskService.assignTask(this.taskId, {assignee: userEmail}),\n ])\n .pipe(\n take(1),\n tap(([candidateUsers]) => {\n this.userEmailToAssign = userEmail;\n this.assignedEmailOnServer$.next(userEmail);\n this.assignedUserFullName$.next(this.getAssignedUserName(candidateUsers, userEmail));\n this.emitChange();\n this.enable();\n })\n )\n .subscribe();\n }\n\n unassignTask(): void {\n this.disable();\n this.taskService\n .unassignTask(this.taskId)\n .pipe(\n tap(() => {\n this.clear();\n this.emitChange();\n this.enable();\n })\n )\n .subscribe();\n }\n\n getAssignedUserName(users: User[], userEmail: string): string {\n if (users && userEmail) {\n const findUser = users.find(user => user.email === userEmail);\n return findUser ? findUser.fullName : '';\n }\n return '';\n }\n\n mapUsersForDropdown(users: User[]): DropdownItem[] {\n return (\n users &&\n users\n .map(user => ({...user, lastName: user.lastName?.split(' ').splice(-1)[0] || ''}))\n .sort((a, b) => a.lastName.localeCompare(b.lastName))\n .map(user => ({text: user.fullName, id: user.email}))\n );\n }\n\n private clear(): void {\n this.assignedEmailOnServer$.next(null);\n this.userEmailToAssign = null;\n }\n\n private emitChange(): void {\n this.assignmentOfTaskChanged.emit();\n }\n\n private enable(): void {\n this.disabled$.next(false);\n }\n\n private disable(): void {\n this.disabled$.next(true);\n }\n}\n","<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container\n *ngIf=\"{\n candidateUsers: candidateUsersForTask$ | async,\n disabled: disabled$ | async,\n emailOnServer: assignedEmailOnServer$ | async\n } as obs\"\n>\n <div class=\"container-fluid\">\n <div class=\"row mt-2 mb-2\">\n <div class=\"col-12 pl-0 d-flex flex-row align-items-center\">\n <ng-container *ngIf=\"obs.candidateUsers; else loading\">\n <valtimo-searchable-dropdown-select\n [style]=\"'underlinedText'\"\n [items]=\"mapUsersForDropdown(obs.candidateUsers)\"\n [buttonText]=\"'assignTask.header' | translate\"\n [searchText]=\"'interface.typeToSearch' | translate\"\n [noResultsText]=\"'interface.noSearchResults' | translate\"\n [disabled]=\"obs.disabled\"\n [selectedText]=\"'assignTask.assignedTo' | translate\"\n [selectedTextValue]=\"assignedUserFullName$ | async\"\n [clearSelectionButtonTitle]=\"'assignTask.remove' | translate\"\n [hasSelection]=\"userEmailToAssign === obs.emailOnServer && obs.emailOnServer !== null\"\n [width]=\"250\"\n (itemSelected)=\"assignTask($event)\"\n (clearSelection)=\"unassignTask()\"\n >\n </valtimo-searchable-dropdown-select>\n </ng-container>\n </div>\n </div>\n </div>\n</ng-container>\n\n<ng-template #loading>\n <h5>\n <b>{{ 'assignTask.fetchingUsers' | translate }}</b>\n </h5>\n</ng-template>\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, EventEmitter, Output, ViewChild, ViewEncapsulation} from '@angular/core';\nimport {ActivatedRoute, Router} from '@angular/router';\nimport {\n FormioComponent,\n FormioOptionsImpl,\n FormioSubmission,\n ModalComponent,\n ValtimoFormioOptions,\n} from '@valtimo/components';\nimport {Task, TaskProcessLinkType} from '../models';\nimport {\n FormAssociation,\n FormFlowInstance,\n FormFlowService,\n FormFlowStepType,\n FormLinkService,\n FormSubmissionResult,\n} from '@valtimo/form-link';\nimport {FormioForm} from '@formio/angular';\nimport moment from 'moment';\nimport {NGXLogger} from 'ngx-logger';\nimport {ToastrService} from 'ngx-toastr';\nimport {map, take} from 'rxjs/operators';\nimport {TaskService} from '../task.service';\nimport {BehaviorSubject, Observable} from 'rxjs';\nimport {UserProviderService} from '@valtimo/security';\n\nmoment.locale(localStorage.getItem('langKey') || '');\n\n@Component({\n selector: 'valtimo-task-detail-modal',\n templateUrl: './task-detail-modal.component.html',\n styleUrls: ['./task-detail-modal.component.scss'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class TaskDetailModalComponent {\n @ViewChild('form') form: FormioComponent;\n @ViewChild('taskDetailModal') modal: ModalComponent;\n @Output() formSubmit = new EventEmitter();\n @Output() assignmentOfTaskChanged = new EventEmitter();\n\n public task: Task | null = null;\n public formDefinition: FormioForm;\n public formFlowInstanceId: string;\n public formFlowStepInstanceId?: string;\n public page: any = null;\n public formioOptions: ValtimoFormioOptions;\n public errorMessage: string = null;\n\n private formAssociation: FormAssociation;\n private taskProcessLinkType$ = new BehaviorSubject<TaskProcessLinkType | null>(null);\n\n processLinkIsForm$ = this.taskProcessLinkType$.pipe(map(type => type === 'form'));\n processLinkIsFormFlow$ = this.taskProcessLinkType$.pipe(map(type => type === 'form-flow'));\n\n private formFlowStepType$ = new BehaviorSubject<FormFlowStepType | null>(null);\n formFlowStepTypeIsForm$ = this.formFlowStepType$.pipe(map(type => type === 'form'));\n\n readonly isAdmin$: Observable<boolean> = this.userProviderService\n .getUserSubject()\n .pipe(map(userIdentity => userIdentity?.roles?.includes('ROLE_ADMIN')));\n\n constructor(\n private readonly toastr: ToastrService,\n private readonly formLinkService: FormLinkService,\n private readonly formFlowService: FormFlowService,\n private readonly router: Router,\n private readonly logger: NGXLogger,\n private readonly route: ActivatedRoute,\n private readonly taskService: TaskService,\n private readonly userProviderService: UserProviderService\n ) {\n this.formioOptions = new FormioOptionsImpl();\n this.formioOptions.disableAlerts = true;\n }\n\n openTaskDetails(task: Task) {\n this.resetTaskProcessLinkType();\n this.resetFormDefinition();\n this.getTaskProcessLink(task.id);\n\n this.task = task;\n this.page = {\n title: task.name,\n subtitle: `Created ${task.created}`,\n };\n\n this.formLinkService\n .getPreFilledFormDefinitionByFormLinkId(\n task.processDefinitionKey,\n task.businessKey,\n task.taskDefinitionKey,\n task.id // taskInstanceId\n )\n .subscribe(\n formDefinition => {\n this.formAssociation = formDefinition.formAssociation;\n\n const className = this.formAssociation.formLink.className.split('.');\n const linkType = className[className.length - 1];\n\n switch (linkType) {\n case 'BpmnElementFormIdLink':\n this.setFormDefinitionAndOpenModal(formDefinition);\n break;\n case 'BpmnElementFormFlowIdLink':\n // We can't use the formDefinition here because the form definition is provided per form flow step\n // I'm still leaving this in here in case we want to add form flow specific code.\n break;\n case 'BpmnElementUrlLink':\n this.openUrlLink(formDefinition);\n break;\n case 'BpmnElementAngularStateUrlLink':\n this.openAngularStateUrlLink(task, formDefinition);\n break;\n default:\n this.logger.fatal('Unsupported class name');\n }\n },\n errors => {\n if (errors?.error?.detail) {\n this.errorMessage = errors.error.detail;\n }\n\n this.modal.show();\n }\n );\n }\n\n public gotoFormLinkScreen(): void {\n this.modal.hide();\n this.router.navigate(['form-links']);\n }\n\n public onSubmit(submission: FormioSubmission): void {\n if (this.taskProcessLinkType$.getValue() === 'form') {\n this.formLinkService\n .onSubmit(\n this.task.processDefinitionKey,\n this.formAssociation.formLink.id,\n submission.data,\n this.task.businessKey,\n this.task.id\n )\n .subscribe(\n (_: FormSubmissionResult) => {\n this.completeTask();\n },\n errors => {\n this.form.showErrors(errors);\n }\n );\n }\n\n if (this.taskProcessLinkType$.getValue() === 'form-flow') {\n if (submission.data.submit) {\n this.formFlowService\n .submitStep(this.formFlowInstanceId, this.formFlowStepInstanceId, submission.data)\n .subscribe(\n (result: FormFlowInstance) => this.handleFormFlowStep(result),\n errors => this.form.showErrors(errors)\n );\n } else if (submission.data['back']) {\n this.formFlowService.back(this.formFlowInstanceId).subscribe(\n (result: FormFlowInstance) => this.handleFormFlowStep(result),\n errors => this.form.showErrors(errors)\n );\n }\n }\n }\n\n private resetFormDefinition(): void {\n this.formDefinition = null;\n }\n\n private getTaskProcessLink(taskId: string): void {\n this.taskService.getTaskProcessLink(taskId).subscribe(res => {\n switch (res?.type) {\n case 'form':\n this.taskProcessLinkType$.next('form');\n break;\n case 'form-flow':\n this.taskProcessLinkType$.next('form-flow');\n this.getFormFlowStep(res?.properties.formFlowInstanceId);\n break;\n }\n });\n }\n\n private getFormFlowStep(formFlowInstanceId: string): void {\n this.formFlowService\n .getFormFlowStep(formFlowInstanceId)\n .subscribe((result: FormFlowInstance) => {\n this.handleFormFlowStep(result);\n });\n }\n\n private handleFormFlowStep(formFlowInstance: FormFlowInstance) {\n if (formFlowInstance.step === null) {\n this.formFlowStepType$.next(null);\n this.formFlowInstanceId = null;\n this.formFlowStepInstanceId = null;\n this.completeTask();\n } else {\n this.formFlowStepType$.next(formFlowInstance.step.type);\n this.formFlowInstanceId = formFlowInstance.id;\n this.formFlowStepInstanceId = formFlowInstance.step.id;\n this.setFormDefinitionAndOpenModal(formFlowInstance.step.typeProperties.definition);\n }\n }\n\n private completeTask() {\n this.toastr.success(this.task.name + ' has successfully been completed');\n this.modal.hide();\n this.task = null;\n this.formSubmit.emit();\n }\n\n private resetTaskProcessLinkType(): void {\n this.taskProcessLinkType$.next(null);\n }\n\n private setFormDefinitionAndOpenModal(formDefinition: any): void {\n this.formDefinition = formDefinition;\n this.modal.show();\n }\n\n private openUrlLink(formDefinition: any): void {\n const url = this.router.serializeUrl(\n this.router.createUrlTree([formDefinition.formAssociation.formLink.url])\n );\n\n window.open(url, '_blank');\n }\n\n private openAngularStateUrlLink(task: Task, formDefinition: any): void {\n this.route.params.pipe(take(1)).subscribe(params => {\n const taskId = task?.id;\n const documentId = params?.documentId;\n\n this.router.navigate([formDefinition.formAssociation.formLink.url], {\n state: {\n ...(taskId && {taskId}),\n ...(documentId && {documentId}),\n },\n });\n });\n }\n}\n","<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-modal\n #taskDetailModal\n elementId=\"taskDetailModal\"\n [title]=\"page?.title\"\n [subtitle]=\"page?.subtitle\"\n [templateBelowSubtitle]=\"assignUserToTask\"\n>\n <div\n body\n *ngIf=\"formDefinition && ((processLinkIsForm$ | async) || (formFlowStepTypeIsForm$ | async))\"\n >\n <valtimo-form-io\n #form\n [form]=\"formDefinition\"\n (submit)=\"onSubmit($event)\"\n [options]=\"formioOptions\"\n ></valtimo-form-io>\n </div>\n <div body *ngIf=\"!formDefinition && !errorMessage\">\n <div class=\"bg-warning text-black mb-0 p-3 text-center\">\n {{\n (isAdmin$ | async)\n ? ('formManagement.noFormDefinitionFoundAdmin' | translate)\n : ('formManagement.noFormDefinitionFoundUser' | translate)\n }}\n </div>\n </div>\n <div body *ngIf=\"errorMessage\">\n <div class=\"bg-danger text-black mb-0 p-3 text-center\">\n {{ errorMessage }}\n </div>\n </div>\n <div footer>\n <div class=\"mb-0 p-3 text-center\" *ngIf=\"!formDefinition\">\n <button\n class=\"btn btn-secondary btn-space\"\n type=\"button\"\n (click)=\"gotoFormLinkScreen()\"\n id=\"form-link-button\"\n >\n {{ 'formManagement.gotoFormLinksButton' | translate }}\n </button>\n </div>\n </div>\n</valtimo-modal>\n\n<ng-template #assignUserToTask>\n <valtimo-assign-user-to-task\n *ngIf=\"task && assignmentOfTaskChanged\"\n [taskId]=\"task.id\"\n [assigneeEmail]=\"task.assignee\"\n (assignmentOfTaskChanged)=\"assignmentOfTaskChanged.emit()\"\n ></valtimo-assign-user-to-task>\n</ng-template>\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Component, OnDestroy, ViewChild, ViewEncapsulation} from '@angular/core';\nimport {Router} from '@angular/router';\nimport {TaskService} from '../task.service';\nimport moment from 'moment';\nimport {Task, TaskList} from '../models';\nimport {NGXLogger} from 'ngx-logger';\nimport {TaskDetailModalComponent} from '../task-detail-modal/task-detail-modal.component';\nimport {TranslateService} from '@ngx-translate/core';\nimport {combineLatest, Subscription} from 'rxjs';\nimport {SortState} from '@valtimo/config';\n\nmoment.locale(localStorage.getItem('langKey') || '');\n\n@Component({\n selector: 'valtimo-task-list',\n templateUrl: './task-list.component.html',\n styleUrls: ['./task-list.component.scss'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class TaskListComponent implements OnDestroy {\n @ViewChild('taskDetail') taskDetail: TaskDetailModalComponent;\n public tasks = {\n mine: new TaskList(),\n open: new TaskList(),\n all: new TaskList(),\n };\n public currentTaskType = 'mine';\n public listTitle: string | null = null;\n public listDescription: string | null = null;\n public sortState: SortState | null = null;\n private translationSubscription: Subscription;\n\n public paginationClicked(page: number, type: string) {\n this.tasks[type].page = page - 1;\n this.getTasks(type);\n }\n\n constructor(\n private taskService: TaskService,\n private router: Router,\n private logger: NGXLogger,\n private translateService: TranslateService\n ) {\n this.setDefaultSorting();\n }\n\n paginationSet() {\n this.tasks.mine.pagination.size =\n this.tasks.all.pagination.size =\n this.tasks.open.pagination.size =\n this.tasks[this.currentTaskType].pagination.size;\n this.getTasks(this.currentTaskType);\n }\n\n private clearPagination(type: string) {\n this.tasks[type].page = 0;\n }\n\n tabChange(tab) {\n this.clearPagination(this.currentTaskType);\n\n switch (tab.nextId) {\n case 1:\n this.getTasks('mine');\n break;\n case 2:\n this.getTasks('open');\n break;\n case 3:\n this.getTasks('all');\n break;\n default:\n this.logger.fatal('Unreachable case');\n }\n }\n\n showTask(task) {\n this.router.navigate(['tasks', task.id]);\n }\n\n getTasks(type: string) {\n let params: any;\n\n this.translationSubscription = combineLatest([\n this.translateService.stream(`task-list.${type}.title`),\n this.translateService.stream(`task-list.${type}.description`),\n ]).subscribe(([title, description]) => {\n this.listTitle = title;\n this.listDescription = description;\n });\n\n switch (type) {\n case 'mine':\n params = {\n page: this.tasks.mine.page,\n size: this.tasks.mine.pagination.size,\n filter: 'mine',\n };\n this.currentTaskType = 'mine';\n break;\n case 'open':\n params = {\n page: this.tasks.open.page,\n size: this.tasks.open.pagination.size,\n filter: 'open',\n };\n this.currentTaskType = 'open';\n break;\n case 'all':\n params = {page: this.tasks.all.page, size: this.tasks.open.pagination.size, filter: 'all'};\n this.currentTaskType = 'all';\n break;\n default:\n this.logger.fatal('Unreachable case');\n }\n\n if (this.sortState) {\n params.sort = this.getSortString(this.sortState);\n }\n\n this.taskService.queryTasks(params).subscribe((results: any) => {\n this.tasks[type].pagination.collectionSize = results.headers.get('x-total-count');\n this.tasks[type].tasks = results.body as Array<Task>;\n this.tasks[type].tasks.map((task: Task) => {\n task.created = moment(task.created).format('DD MMM YYYY HH:mm');\n if (task.due) {\n task.due = moment(task.due).format('DD MMM YYYY HH:mm');\n }\n });\n if (this.taskService.getConfigCustomTaskList()) {\n this.customTaskListFields(type);\n } else {\n this.defaultTaskListFields(type);\n }\n });\n }\n\n public defaultTaskListFields(type) {\n this.translationSubscription = combineLatest([\n this.translateService.stream(`task-list.fieldLabels.created`),\n this.translateService.stream(`task-list.fieldLabels.name`),\n this.translateService.stream(`task-list.fieldLabels.valtimoAssignee.fullName`),\n this.translateService.stream(`task-list.fieldLabels.due`),\n ]).subscribe(([created, name, assignee, due]) => {\n this.tasks[type].fields = [\n {\n key: 'created',\n label: created,\n },\n {\n key: 'name',\n label: name,\n },\n {\n key: 'valtimoAssignee.fullName',\n label: assignee,\n },\n {\n key: 'due',\n label: due,\n },\n ];\n });\n }\n\n public customTaskListFields(type) {\n const customTaskListFields = this.taskService.getConfigCustomTaskList().fields;\n\n this.translationSubscription = combineLatest(\n customTaskListFields.map(column =>\n this.translateService.stream(`task-list.fieldLabels.${column.translationKey}`)\n )\n ).subscribe(labels => {\n this.tasks[type].fields = customTaskListFields.map((column, index) => ({\n key: column.propertyName,\n label: labels[index],\n sortable: column.sortable,\n ...(column.viewType && {viewType: column.viewType}),\n }));\n });\n }\n\n public rowOpenTaskClick(task) {\n if (!task.endTime) {\n this.taskDetail.openTaskDetails(task);\n } else {\n return false;\n }\n }\n\n setDefaultSorting() {\n this.sortState = this.taskService.getConfigCustomTaskList()?.defaultSortedColumn || null;\n }\n\n public sortChanged(sortState: SortState) {\n this.sortState = sortState;\n this.getTasks(this.currentTaskType);\n }\n\n getSortString(sort: SortState): string {\n return `${sort.state.name},${sort.state.direction}`;\n }\n\n ngOnDestroy(): void {\n this.translationSubscription.unsubscribe();\n }\n}\n","<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"main-content\">\n <div class=\"container-fluid\">\n <valtimo-widget>\n <valtimo-list\n [items]=\"tasks[currentTaskType].tasks\"\n [fields]=\"tasks[currentTaskType].fields\"\n [pagination]=\"tasks[currentTaskType].pagination\"\n [viewMode]=\"true\"\n (paginationClicked)=\"paginationClicked($event, currentTaskType)\"\n (paginationSet)=\"paginationSet()\"\n paginationIdentifier=\"taskList\"\n [isSearchable]=\"true\"\n [header]=\"true\"\n (rowClicked)=\"rowOpenTaskClick($event)\"\n (sortChanged)=\"sortChanged($event)\"\n >\n <div header>\n <h3 class=\"list-header-title\">{{ listTitle }}</h3>\n <h5 class=\"list-header-description\">{{ listDescription }}</h5>\n </div>\n <div tabs>\n <ul ngbNav [destroyOnHide]=\"false\" (navChange)=\"tabChange($event)\" class=\"nav-tabs\">\n <li [ngbNavItem]=\"1\" [title]=\"'task-list.mine.title' | translate\">\n <a ngbNavLink>{{ 'task-list.mine.title' | translate }}</a>\n </li>\n <li [ngbNavItem]=\"2\" [title]=\"'task-list.open.title' | translate\">\n <a ngbNavLink>{{ 'task-list.open.title' | translate }}</a>\n </li>\n <li [ngbNavItem]=\"3\" [title]=\"'task-list.all.title' | translate\">\n <a ngbNavLink>{{ 'task-list.all.title' | translate }}</a>\n </li>\n </ul>\n </div>\n </valtimo-list>\n </valtimo-widget>\n <valtimo-task-detail-modal\n #taskDetail\n (formSubmit)=\"getTasks(currentTaskType)\"\n (assignmentOfTaskChanged)=\"getTasks(currentTaskType)\"\n ></valtimo-task-detail-modal>\n </div>\n</div>\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {RouterModule, Routes} from '@angular/router';\nimport {CommonModule} from '@angular/common';\nimport {AuthGuardService} from '@valtimo/security';\nimport {TaskListComponent} from './task-list/task-list.component';\nimport {ROLE_USER} from '@valtimo/config';\n\nconst routes: Routes = [\n {\n path: 'tasks',\n component: TaskListComponent,\n canActivate: [AuthGuardService],\n data: {title: 'Tasks', roles: [ROLE_USER]},\n },\n];\n\n@NgModule({\n declarations: [],\n imports: [CommonModule, RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class TaskRoutingModule {}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {CommonModule} from '@angular/common';\nimport {HttpClient} from '@angular/common/http';\nimport {NgModule} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {BrowserAnimationsModule} from '@angular/platform-browser/animations';\nimport {NgbModule} from '@ng-bootstrap/ng-bootstrap';\nimport {TranslateLoader, TranslateModule} from '@ngx-translate/core';\nimport {\n CamundaFormModule,\n FormIoModule,\n ListModule,\n ModalModule,\n PageHeaderModule,\n SpinnerModule,\n WidgetModule,\n SearchableDropdownSelectModule,\n} from '@valtimo/components';\nimport {HttpLoaderFactory} from '@valtimo/config';\nimport {ToastrModule} from 'ngx-toastr';\nimport {TaskDetailModalComponent} from './task-detail-modal/task-detail-modal.component';\nimport {TaskListComponent} from './task-list/task-list.component';\nimport {TaskRoutingModule} from './task-routing.module';\nimport {AssignUserToTaskComponent} from './assign-user-to-task/assign-user-to-task.component';\n\n@NgModule({\n declarations: [TaskListComponent, TaskDetailModalComponent, AssignUserToTaskComponent],\n imports: [\n CommonModule,\n TaskRoutingModule,\n ListModule,\n PageHeaderModule,\n WidgetModule,\n SpinnerModule,\n SearchableDropdownSelectModule,\n CamundaFormModule,\n BrowserAnimationsModule,\n FormsModule,\n ToastrModule.forRoot({\n positionClass: 'toast-bottom-full-width',\n preventDuplicates: true,\n }),\n TranslateModule.forRoot({\n loader: {\n provide: TranslateLoader,\n useFactory: HttpLoaderFactory,\n deps: [HttpClient],\n },\n }),\n NgbModule,\n FormIoModule,\n ModalModule,\n ],\n exports: [TaskListComponent, TaskDetailModalComponent, AssignUserToTaskComponent],\n})\nexport class TaskModule {}\n","/*\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of task\n */\n\nexport * from './lib/models';\nexport * from './lib/task.service';\nexport * from './lib/task.module';\nexport * from './lib/task-detail-modal/task-detail-modal.component';\nexport * from './lib/task-list/task-list.component';\nexport * from './lib/assign-user-to-task/assign-user-to-task.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1.TaskService","i2","i1","i3","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
8
8
|
import { CommonModule } from '@angular/common';
|
|
9
9
|
import { FormsModule } from '@angular/forms';
|
|
10
10
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
11
|
-
import * as i7 from '@ng-bootstrap/ng-bootstrap';
|
|
11
|
+
import * as i7$1 from '@ng-bootstrap/ng-bootstrap';
|
|
12
12
|
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
|
|
13
13
|
import * as i4 from '@ngx-translate/core';
|
|
14
14
|
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
|
|
15
|
-
import * as
|
|
15
|
+
import * as i7 from '@valtimo/components';
|
|
16
16
|
import { FormioOptionsImpl, ListModule, PageHeaderModule, WidgetModule, SpinnerModule, SearchableDropdownSelectModule, CamundaFormModule, FormIoModule, ModalModule } from '@valtimo/components';
|
|
17
17
|
import * as i1$1 from 'ngx-toastr';
|
|
18
18
|
import { ToastrModule } from 'ngx-toastr';
|
|
@@ -23,6 +23,7 @@ import * as i2$1 from '@valtimo/form-link';
|
|
|
23
23
|
import * as i3$1 from '@angular/router';
|
|
24
24
|
import { RouterModule } from '@angular/router';
|
|
25
25
|
import * as i4$1 from 'ngx-logger';
|
|
26
|
+
import * as i6 from '@valtimo/security';
|
|
26
27
|
import { AuthGuardService } from '@valtimo/security';
|
|
27
28
|
|
|
28
29
|
/*
|
|
@@ -266,7 +267,7 @@ class AssignUserToTaskComponent {
|
|
|
266
267
|
}
|
|
267
268
|
}
|
|
268
269
|
AssignUserToTaskComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AssignUserToTaskComponent, deps: [{ token: TaskService }], target: i0.ɵɵFactoryTarget.Component });
|
|
269
|
-
AssignUserToTaskComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AssignUserToTaskComponent, selector: "valtimo-assign-user-to-task", inputs: { taskId: "taskId", assigneeEmail: "assigneeEmail" }, outputs: { assignmentOfTaskChanged: "assignmentOfTaskChanged" }, usesOnChanges: true, ngImport: i0, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container\n *ngIf=\"{\n candidateUsers: candidateUsersForTask$ | async,\n disabled: disabled$ | async,\n emailOnServer: assignedEmailOnServer$ | async\n } as obs\"\n>\n <div class=\"container-fluid\">\n <div class=\"row mt-2 mb-2\">\n <div class=\"col-12 pl-0 d-flex flex-row align-items-center\">\n <ng-container *ngIf=\"obs.candidateUsers; else loading\">\n <valtimo-searchable-dropdown-select\n [style]=\"'underlinedText'\"\n [items]=\"mapUsersForDropdown(obs.candidateUsers)\"\n [buttonText]=\"'assignTask.header' | translate\"\n [searchText]=\"'interface.typeToSearch' | translate\"\n [noResultsText]=\"'interface.noSearchResults' | translate\"\n [disabled]=\"obs.disabled\"\n [selectedText]=\"'assignTask.assignedTo' | translate\"\n [selectedTextValue]=\"assignedUserFullName$ | async\"\n [clearSelectionButtonTitle]=\"'assignTask.remove' | translate\"\n [hasSelection]=\"userEmailToAssign === obs.emailOnServer && obs.emailOnServer !== null\"\n [width]=\"250\"\n (itemSelected)=\"assignTask($event)\"\n (clearSelection)=\"unassignTask()\"\n >\n </valtimo-searchable-dropdown-select>\n </ng-container>\n </div>\n </div>\n </div>\n</ng-container>\n\n<ng-template #loading>\n <h5>\n <b>{{ 'assignTask.fetchingUsers' | translate }}</b>\n </h5>\n</ng-template>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.container-fluid{color:#959595}i{font-size:13px}\n"], components: [{ type:
|
|
270
|
+
AssignUserToTaskComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AssignUserToTaskComponent, selector: "valtimo-assign-user-to-task", inputs: { taskId: "taskId", assigneeEmail: "assigneeEmail" }, outputs: { assignmentOfTaskChanged: "assignmentOfTaskChanged" }, usesOnChanges: true, ngImport: i0, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container\n *ngIf=\"{\n candidateUsers: candidateUsersForTask$ | async,\n disabled: disabled$ | async,\n emailOnServer: assignedEmailOnServer$ | async\n } as obs\"\n>\n <div class=\"container-fluid\">\n <div class=\"row mt-2 mb-2\">\n <div class=\"col-12 pl-0 d-flex flex-row align-items-center\">\n <ng-container *ngIf=\"obs.candidateUsers; else loading\">\n <valtimo-searchable-dropdown-select\n [style]=\"'underlinedText'\"\n [items]=\"mapUsersForDropdown(obs.candidateUsers)\"\n [buttonText]=\"'assignTask.header' | translate\"\n [searchText]=\"'interface.typeToSearch' | translate\"\n [noResultsText]=\"'interface.noSearchResults' | translate\"\n [disabled]=\"obs.disabled\"\n [selectedText]=\"'assignTask.assignedTo' | translate\"\n [selectedTextValue]=\"assignedUserFullName$ | async\"\n [clearSelectionButtonTitle]=\"'assignTask.remove' | translate\"\n [hasSelection]=\"userEmailToAssign === obs.emailOnServer && obs.emailOnServer !== null\"\n [width]=\"250\"\n (itemSelected)=\"assignTask($event)\"\n (clearSelection)=\"unassignTask()\"\n >\n </valtimo-searchable-dropdown-select>\n </ng-container>\n </div>\n </div>\n </div>\n</ng-container>\n\n<ng-template #loading>\n <h5>\n <b>{{ 'assignTask.fetchingUsers' | translate }}</b>\n </h5>\n</ng-template>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.container-fluid{color:#959595}i{font-size:13px}\n"], components: [{ type: i7.SearchableDropdownSelectComponent, selector: "valtimo-searchable-dropdown-select", inputs: ["style", "items", "buttonText", "searchText", "noResultsText", "disabled", "selectedText", "selectedTextValue", "clearSelectionButtonTitle", "hasSelection", "width"], outputs: ["itemSelected", "clearSelection"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i3.AsyncPipe, "translate": i4.TranslatePipe } });
|
|
270
271
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AssignUserToTaskComponent, decorators: [{
|
|
271
272
|
type: Component,
|
|
272
273
|
args: [{ selector: 'valtimo-assign-user-to-task', template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container\n *ngIf=\"{\n candidateUsers: candidateUsersForTask$ | async,\n disabled: disabled$ | async,\n emailOnServer: assignedEmailOnServer$ | async\n } as obs\"\n>\n <div class=\"container-fluid\">\n <div class=\"row mt-2 mb-2\">\n <div class=\"col-12 pl-0 d-flex flex-row align-items-center\">\n <ng-container *ngIf=\"obs.candidateUsers; else loading\">\n <valtimo-searchable-dropdown-select\n [style]=\"'underlinedText'\"\n [items]=\"mapUsersForDropdown(obs.candidateUsers)\"\n [buttonText]=\"'assignTask.header' | translate\"\n [searchText]=\"'interface.typeToSearch' | translate\"\n [noResultsText]=\"'interface.noSearchResults' | translate\"\n [disabled]=\"obs.disabled\"\n [selectedText]=\"'assignTask.assignedTo' | translate\"\n [selectedTextValue]=\"assignedUserFullName$ | async\"\n [clearSelectionButtonTitle]=\"'assignTask.remove' | translate\"\n [hasSelection]=\"userEmailToAssign === obs.emailOnServer && obs.emailOnServer !== null\"\n [width]=\"250\"\n (itemSelected)=\"assignTask($event)\"\n (clearSelection)=\"unassignTask()\"\n >\n </valtimo-searchable-dropdown-select>\n </ng-container>\n </div>\n </div>\n </div>\n</ng-container>\n\n<ng-template #loading>\n <h5>\n <b>{{ 'assignTask.fetchingUsers' | translate }}</b>\n </h5>\n</ng-template>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.container-fluid{color:#959595}i{font-size:13px}\n"] }]
|
|
@@ -295,7 +296,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
295
296
|
*/
|
|
296
297
|
moment.locale(localStorage.getItem('langKey') || '');
|
|
297
298
|
class TaskDetailModalComponent {
|
|
298
|
-
constructor(toastr, formLinkService, formFlowService, router, logger, route, taskService) {
|
|
299
|
+
constructor(toastr, formLinkService, formFlowService, router, logger, route, taskService, userProviderService) {
|
|
299
300
|
this.toastr = toastr;
|
|
300
301
|
this.formLinkService = formLinkService;
|
|
301
302
|
this.formFlowService = formFlowService;
|
|
@@ -303,6 +304,7 @@ class TaskDetailModalComponent {
|
|
|
303
304
|
this.logger = logger;
|
|
304
305
|
this.route = route;
|
|
305
306
|
this.taskService = taskService;
|
|
307
|
+
this.userProviderService = userProviderService;
|
|
306
308
|
this.formSubmit = new EventEmitter();
|
|
307
309
|
this.assignmentOfTaskChanged = new EventEmitter();
|
|
308
310
|
this.task = null;
|
|
@@ -313,6 +315,9 @@ class TaskDetailModalComponent {
|
|
|
313
315
|
this.processLinkIsFormFlow$ = this.taskProcessLinkType$.pipe(map(type => type === 'form-flow'));
|
|
314
316
|
this.formFlowStepType$ = new BehaviorSubject(null);
|
|
315
317
|
this.formFlowStepTypeIsForm$ = this.formFlowStepType$.pipe(map(type => type === 'form'));
|
|
318
|
+
this.isAdmin$ = this.userProviderService
|
|
319
|
+
.getUserSubject()
|
|
320
|
+
.pipe(map(userIdentity => userIdentity?.roles?.includes('ROLE_ADMIN')));
|
|
316
321
|
this.formioOptions = new FormioOptionsImpl();
|
|
317
322
|
this.formioOptions.disableAlerts = true;
|
|
318
323
|
}
|
|
@@ -372,7 +377,9 @@ class TaskDetailModalComponent {
|
|
|
372
377
|
}
|
|
373
378
|
if (this.taskProcessLinkType$.getValue() === 'form-flow') {
|
|
374
379
|
if (submission.data.submit) {
|
|
375
|
-
this.formFlowService
|
|
380
|
+
this.formFlowService
|
|
381
|
+
.submitStep(this.formFlowInstanceId, this.formFlowStepInstanceId, submission.data)
|
|
382
|
+
.subscribe((result) => this.handleFormFlowStep(result), errors => this.form.showErrors(errors));
|
|
376
383
|
}
|
|
377
384
|
else if (submission.data['back']) {
|
|
378
385
|
this.formFlowService.back(this.formFlowInstanceId).subscribe((result) => this.handleFormFlowStep(result), errors => this.form.showErrors(errors));
|
|
@@ -396,7 +403,9 @@ class TaskDetailModalComponent {
|
|
|
396
403
|
});
|
|
397
404
|
}
|
|
398
405
|
getFormFlowStep(formFlowInstanceId) {
|
|
399
|
-
this.formFlowService
|
|
406
|
+
this.formFlowService
|
|
407
|
+
.getFormFlowStep(formFlowInstanceId)
|
|
408
|
+
.subscribe((result) => {
|
|
400
409
|
this.handleFormFlowStep(result);
|
|
401
410
|
});
|
|
402
411
|
}
|
|
@@ -444,12 +453,12 @@ class TaskDetailModalComponent {
|
|
|
444
453
|
});
|
|
445
454
|
}
|
|
446
455
|
}
|
|
447
|
-
TaskDetailModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TaskDetailModalComponent, deps: [{ token: i1$1.ToastrService }, { token: i2$1.FormLinkService }, { token: i2$1.FormFlowService }, { token: i3$1.Router }, { token: i4$1.NGXLogger }, { token: i3$1.ActivatedRoute }, { token: TaskService }], target: i0.ɵɵFactoryTarget.Component });
|
|
448
|
-
TaskDetailModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: TaskDetailModalComponent, selector: "valtimo-task-detail-modal", outputs: { formSubmit: "formSubmit", assignmentOfTaskChanged: "assignmentOfTaskChanged" }, viewQueries: [{ propertyName: "form", first: true, predicate: ["form"], descendants: true }, { propertyName: "modal", first: true, predicate: ["taskDetailModal"], descendants: true }], ngImport: i0, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-modal\n #taskDetailModal\n elementId=\"taskDetailModal\"\n [title]=\"page?.title\"\n [subtitle]=\"page?.subtitle\"\n [templateBelowSubtitle]=\"assignUserToTask\"\n>\n <div
|
|
456
|
+
TaskDetailModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TaskDetailModalComponent, deps: [{ token: i1$1.ToastrService }, { token: i2$1.FormLinkService }, { token: i2$1.FormFlowService }, { token: i3$1.Router }, { token: i4$1.NGXLogger }, { token: i3$1.ActivatedRoute }, { token: TaskService }, { token: i6.UserProviderService }], target: i0.ɵɵFactoryTarget.Component });
|
|
457
|
+
TaskDetailModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: TaskDetailModalComponent, selector: "valtimo-task-detail-modal", outputs: { formSubmit: "formSubmit", assignmentOfTaskChanged: "assignmentOfTaskChanged" }, viewQueries: [{ propertyName: "form", first: true, predicate: ["form"], descendants: true }, { propertyName: "modal", first: true, predicate: ["taskDetailModal"], descendants: true }], ngImport: i0, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-modal\n #taskDetailModal\n elementId=\"taskDetailModal\"\n [title]=\"page?.title\"\n [subtitle]=\"page?.subtitle\"\n [templateBelowSubtitle]=\"assignUserToTask\"\n>\n <div\n body\n *ngIf=\"formDefinition && ((processLinkIsForm$ | async) || (formFlowStepTypeIsForm$ | async))\"\n >\n <valtimo-form-io\n #form\n [form]=\"formDefinition\"\n (submit)=\"onSubmit($event)\"\n [options]=\"formioOptions\"\n ></valtimo-form-io>\n </div>\n <div body *ngIf=\"!formDefinition && !errorMessage\">\n <div class=\"bg-warning text-black mb-0 p-3 text-center\">\n {{\n (isAdmin$ | async)\n ? ('formManagement.noFormDefinitionFoundAdmin' | translate)\n : ('formManagement.noFormDefinitionFoundUser' | translate)\n }}\n </div>\n </div>\n <div body *ngIf=\"errorMessage\">\n <div class=\"bg-danger text-black mb-0 p-3 text-center\">\n {{ errorMessage }}\n </div>\n </div>\n <div footer>\n <div class=\"mb-0 p-3 text-center\" *ngIf=\"!formDefinition\">\n <button\n class=\"btn btn-secondary btn-space\"\n type=\"button\"\n (click)=\"gotoFormLinkScreen()\"\n id=\"form-link-button\"\n >\n {{ 'formManagement.gotoFormLinksButton' | translate }}\n </button>\n </div>\n </div>\n</valtimo-modal>\n\n<ng-template #assignUserToTask>\n <valtimo-assign-user-to-task\n *ngIf=\"task && assignmentOfTaskChanged\"\n [taskId]=\"task.id\"\n [assigneeEmail]=\"task.assignee\"\n (assignmentOfTaskChanged)=\"assignmentOfTaskChanged.emit()\"\n ></valtimo-assign-user-to-task>\n</ng-template>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */#taskDetailModal .formio-component-submit{text-align:right}\n"], components: [{ type: i7.ModalComponent, selector: "valtimo-modal", inputs: ["elementId", "title", "subtitle", "templateBelowSubtitle", "showFooter"] }, { type: i7.FormioComponent, selector: "valtimo-form-io", inputs: ["form", "options", "submission", "formRefresh$"], outputs: ["submit", "change"] }, { type: AssignUserToTaskComponent, selector: "valtimo-assign-user-to-task", inputs: ["taskId", "assigneeEmail"], outputs: ["assignmentOfTaskChanged"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i3.AsyncPipe, "translate": i4.TranslatePipe }, encapsulation: i0.ViewEncapsulation.None });
|
|
449
458
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TaskDetailModalComponent, decorators: [{
|
|
450
459
|
type: Component,
|
|
451
|
-
args: [{ selector: 'valtimo-task-detail-modal', encapsulation: ViewEncapsulation.None, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-modal\n #taskDetailModal\n elementId=\"taskDetailModal\"\n [title]=\"page?.title\"\n [subtitle]=\"page?.subtitle\"\n [templateBelowSubtitle]=\"assignUserToTask\"\n>\n <div
|
|
452
|
-
}], ctorParameters: function () { return [{ type: i1$1.ToastrService }, { type: i2$1.FormLinkService }, { type: i2$1.FormFlowService }, { type: i3$1.Router }, { type: i4$1.NGXLogger }, { type: i3$1.ActivatedRoute }, { type: TaskService }]; }, propDecorators: { form: [{
|
|
460
|
+
args: [{ selector: 'valtimo-task-detail-modal', encapsulation: ViewEncapsulation.None, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-modal\n #taskDetailModal\n elementId=\"taskDetailModal\"\n [title]=\"page?.title\"\n [subtitle]=\"page?.subtitle\"\n [templateBelowSubtitle]=\"assignUserToTask\"\n>\n <div\n body\n *ngIf=\"formDefinition && ((processLinkIsForm$ | async) || (formFlowStepTypeIsForm$ | async))\"\n >\n <valtimo-form-io\n #form\n [form]=\"formDefinition\"\n (submit)=\"onSubmit($event)\"\n [options]=\"formioOptions\"\n ></valtimo-form-io>\n </div>\n <div body *ngIf=\"!formDefinition && !errorMessage\">\n <div class=\"bg-warning text-black mb-0 p-3 text-center\">\n {{\n (isAdmin$ | async)\n ? ('formManagement.noFormDefinitionFoundAdmin' | translate)\n : ('formManagement.noFormDefinitionFoundUser' | translate)\n }}\n </div>\n </div>\n <div body *ngIf=\"errorMessage\">\n <div class=\"bg-danger text-black mb-0 p-3 text-center\">\n {{ errorMessage }}\n </div>\n </div>\n <div footer>\n <div class=\"mb-0 p-3 text-center\" *ngIf=\"!formDefinition\">\n <button\n class=\"btn btn-secondary btn-space\"\n type=\"button\"\n (click)=\"gotoFormLinkScreen()\"\n id=\"form-link-button\"\n >\n {{ 'formManagement.gotoFormLinksButton' | translate }}\n </button>\n </div>\n </div>\n</valtimo-modal>\n\n<ng-template #assignUserToTask>\n <valtimo-assign-user-to-task\n *ngIf=\"task && assignmentOfTaskChanged\"\n [taskId]=\"task.id\"\n [assigneeEmail]=\"task.assignee\"\n (assignmentOfTaskChanged)=\"assignmentOfTaskChanged.emit()\"\n ></valtimo-assign-user-to-task>\n</ng-template>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */#taskDetailModal .formio-component-submit{text-align:right}\n"] }]
|
|
461
|
+
}], ctorParameters: function () { return [{ type: i1$1.ToastrService }, { type: i2$1.FormLinkService }, { type: i2$1.FormFlowService }, { type: i3$1.Router }, { type: i4$1.NGXLogger }, { type: i3$1.ActivatedRoute }, { type: TaskService }, { type: i6.UserProviderService }]; }, propDecorators: { form: [{
|
|
453
462
|
type: ViewChild,
|
|
454
463
|
args: ['form']
|
|
455
464
|
}], modal: [{
|
|
@@ -641,7 +650,7 @@ class TaskListComponent {
|
|
|
641
650
|
}
|
|
642
651
|
}
|
|
643
652
|
TaskListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TaskListComponent, deps: [{ token: TaskService }, { token: i3$1.Router }, { token: i4$1.NGXLogger }, { token: i4.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
644
|
-
TaskListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: TaskListComponent, selector: "valtimo-task-list", viewQueries: [{ propertyName: "taskDetail", first: true, predicate: ["taskDetail"], descendants: true }], ngImport: i0, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"main-content\">\n <div class=\"container-fluid\">\n <valtimo-widget>\n <valtimo-list\n [items]=\"tasks[currentTaskType].tasks\"\n [fields]=\"tasks[currentTaskType].fields\"\n [pagination]=\"tasks[currentTaskType].pagination\"\n [viewMode]=\"true\"\n (paginationClicked)=\"paginationClicked($event, currentTaskType)\"\n (paginationSet)=\"paginationSet()\"\n paginationIdentifier=\"taskList\"\n [isSearchable]=\"true\"\n [header]=\"true\"\n (rowClicked)=\"rowOpenTaskClick($event)\"\n (sortChanged)=\"sortChanged($event)\"\n >\n <div header>\n <h3 class=\"list-header-title\">{{ listTitle }}</h3>\n <h5 class=\"list-header-description\">{{ listDescription }}</h5>\n </div>\n <div tabs>\n <ul ngbNav [destroyOnHide]=\"false\" (navChange)=\"tabChange($event)\" class=\"nav-tabs\">\n <li [ngbNavItem]=\"1\" [title]=\"'task-list.mine.title' | translate\">\n <a ngbNavLink>{{ 'task-list.mine.title' | translate }}</a>\n </li>\n <li [ngbNavItem]=\"2\" [title]=\"'task-list.open.title' | translate\">\n <a ngbNavLink>{{ 'task-list.open.title' | translate }}</a>\n </li>\n <li [ngbNavItem]=\"3\" [title]=\"'task-list.all.title' | translate\">\n <a ngbNavLink>{{ 'task-list.all.title' | translate }}</a>\n </li>\n </ul>\n </div>\n </valtimo-list>\n </valtimo-widget>\n <valtimo-task-detail-modal\n #taskDetail\n (formSubmit)=\"getTasks(currentTaskType)\"\n (assignmentOfTaskChanged)=\"getTasks(currentTaskType)\"\n ></valtimo-task-detail-modal>\n </div>\n</div>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.tab-content{padding:0;margin:0}.nav.nav-tabs{background-color:#f5f5f5}\n"], components: [{ type:
|
|
653
|
+
TaskListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: TaskListComponent, selector: "valtimo-task-list", viewQueries: [{ propertyName: "taskDetail", first: true, predicate: ["taskDetail"], descendants: true }], ngImport: i0, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"main-content\">\n <div class=\"container-fluid\">\n <valtimo-widget>\n <valtimo-list\n [items]=\"tasks[currentTaskType].tasks\"\n [fields]=\"tasks[currentTaskType].fields\"\n [pagination]=\"tasks[currentTaskType].pagination\"\n [viewMode]=\"true\"\n (paginationClicked)=\"paginationClicked($event, currentTaskType)\"\n (paginationSet)=\"paginationSet()\"\n paginationIdentifier=\"taskList\"\n [isSearchable]=\"true\"\n [header]=\"true\"\n (rowClicked)=\"rowOpenTaskClick($event)\"\n (sortChanged)=\"sortChanged($event)\"\n >\n <div header>\n <h3 class=\"list-header-title\">{{ listTitle }}</h3>\n <h5 class=\"list-header-description\">{{ listDescription }}</h5>\n </div>\n <div tabs>\n <ul ngbNav [destroyOnHide]=\"false\" (navChange)=\"tabChange($event)\" class=\"nav-tabs\">\n <li [ngbNavItem]=\"1\" [title]=\"'task-list.mine.title' | translate\">\n <a ngbNavLink>{{ 'task-list.mine.title' | translate }}</a>\n </li>\n <li [ngbNavItem]=\"2\" [title]=\"'task-list.open.title' | translate\">\n <a ngbNavLink>{{ 'task-list.open.title' | translate }}</a>\n </li>\n <li [ngbNavItem]=\"3\" [title]=\"'task-list.all.title' | translate\">\n <a ngbNavLink>{{ 'task-list.all.title' | translate }}</a>\n </li>\n </ul>\n </div>\n </valtimo-list>\n </valtimo-widget>\n <valtimo-task-detail-modal\n #taskDetail\n (formSubmit)=\"getTasks(currentTaskType)\"\n (assignmentOfTaskChanged)=\"getTasks(currentTaskType)\"\n ></valtimo-task-detail-modal>\n </div>\n</div>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.tab-content{padding:0;margin:0}.nav.nav-tabs{background-color:#f5f5f5}\n"], components: [{ type: i7.WidgetComponent, selector: "valtimo-widget", inputs: ["type", "name", "icon", "contrast", "divider", "title", "subtitle", "collapseAble", "collapse", "additionalClasses"] }, { type: i7.ListComponent, selector: "valtimo-list", inputs: ["items", "fields", "pagination", "viewMode", "isSearchable", "header", "actions", "paginationIdentifier", "initialSortState"], outputs: ["rowClicked", "paginationClicked", "paginationSet", "search", "sortChanged"] }, { type: TaskDetailModalComponent, selector: "valtimo-task-detail-modal", outputs: ["formSubmit", "assignmentOfTaskChanged"] }], directives: [{ type: i7$1.NgbNav, selector: "[ngbNav]", inputs: ["activeId", "animation", "destroyOnHide", "orientation", "roles", "keyboard"], outputs: ["activeIdChange", "shown", "hidden", "navChange"], exportAs: ["ngbNav"] }, { type: i7$1.NgbNavItem, selector: "[ngbNavItem]", inputs: ["destroyOnHide", "disabled", "domId", "ngbNavItem"], outputs: ["shown", "hidden"], exportAs: ["ngbNavItem"] }, { type: i7$1.NgbNavLink, selector: "a[ngbNavLink]" }], pipes: { "translate": i4.TranslatePipe }, encapsulation: i0.ViewEncapsulation.None });
|
|
645
654
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TaskListComponent, decorators: [{
|
|
646
655
|
type: Component,
|
|
647
656
|
args: [{ selector: 'valtimo-task-list', encapsulation: ViewEncapsulation.None, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"main-content\">\n <div class=\"container-fluid\">\n <valtimo-widget>\n <valtimo-list\n [items]=\"tasks[currentTaskType].tasks\"\n [fields]=\"tasks[currentTaskType].fields\"\n [pagination]=\"tasks[currentTaskType].pagination\"\n [viewMode]=\"true\"\n (paginationClicked)=\"paginationClicked($event, currentTaskType)\"\n (paginationSet)=\"paginationSet()\"\n paginationIdentifier=\"taskList\"\n [isSearchable]=\"true\"\n [header]=\"true\"\n (rowClicked)=\"rowOpenTaskClick($event)\"\n (sortChanged)=\"sortChanged($event)\"\n >\n <div header>\n <h3 class=\"list-header-title\">{{ listTitle }}</h3>\n <h5 class=\"list-header-description\">{{ listDescription }}</h5>\n </div>\n <div tabs>\n <ul ngbNav [destroyOnHide]=\"false\" (navChange)=\"tabChange($event)\" class=\"nav-tabs\">\n <li [ngbNavItem]=\"1\" [title]=\"'task-list.mine.title' | translate\">\n <a ngbNavLink>{{ 'task-list.mine.title' | translate }}</a>\n </li>\n <li [ngbNavItem]=\"2\" [title]=\"'task-list.open.title' | translate\">\n <a ngbNavLink>{{ 'task-list.open.title' | translate }}</a>\n </li>\n <li [ngbNavItem]=\"3\" [title]=\"'task-list.all.title' | translate\">\n <a ngbNavLink>{{ 'task-list.all.title' | translate }}</a>\n </li>\n </ul>\n </div>\n </valtimo-list>\n </valtimo-widget>\n <valtimo-task-detail-modal\n #taskDetail\n (formSubmit)=\"getTasks(currentTaskType)\"\n (assignmentOfTaskChanged)=\"getTasks(currentTaskType)\"\n ></valtimo-task-detail-modal>\n </div>\n</div>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.tab-content{padding:0;margin:0}.nav.nav-tabs{background-color:#f5f5f5}\n"] }]
|