@valtimo/task 5.14.0 → 5.15.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/assign-user-to-task/assign-user-to-task.component.mjs +3 -3
- package/esm2020/lib/task-detail-modal/task-detail-modal.component.mjs +3 -3
- package/esm2020/lib/task-list/task-list.component.mjs +3 -3
- package/esm2020/lib/task-routing.module.mjs +4 -4
- package/esm2020/lib/task.module.mjs +4 -4
- package/esm2020/lib/task.service.mjs +3 -3
- package/fesm2015/valtimo-task.mjs +20 -20
- package/fesm2015/valtimo-task.mjs.map +1 -1
- package/fesm2020/valtimo-task.mjs +20 -20
- package/fesm2020/valtimo-task.mjs.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 OnDestroy,\n OnInit,\n Output,\n SimpleChanges,\n} from '@angular/core';\nimport {DropdownItem} from '@valtimo/components';\nimport {BehaviorSubject, combineLatest, Subscription} 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, OnDestroy {\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 private _subscriptions = new Subscription();\n\n constructor(private taskService: TaskService) {}\n\n ngOnInit(): void {\n this._subscriptions.add(\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\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 ngOnDestroy() {\n this._subscriptions.unsubscribe();\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 ValtimoModalService,\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';\nimport {DocumentService} from '@valtimo/document';\nimport {TranslateService} from '@ngx-translate/core';\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 readonly isAdmin$: Observable<boolean> = this.userProviderService\n .getUserSubject()\n .pipe(map(userIdentity => userIdentity?.roles?.includes('ROLE_ADMIN')));\n private formAssociation: FormAssociation;\n private taskProcessLinkType$ = new BehaviorSubject<TaskProcessLinkType | null>(null);\n processLinkIsForm$ = this.taskProcessLinkType$.pipe(map(type => type === 'form'));\n processLinkIsFormFlow$ = this.taskProcessLinkType$.pipe(map(type => type === 'form-flow'));\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 private readonly userProviderService: UserProviderService,\n private readonly modalService: ValtimoModalService,\n private readonly documentService: DocumentService,\n private readonly translateService: TranslateService\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 this.setDocumentDefinitionNameInService(task);\n\n this.task = task;\n this.page = {\n title: task.name,\n subtitle: `${this.translateService.instant('taskDetail.taskCreated')} ${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.modalService.scrollToTop();\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(\n `${this.task.name} ${this.translateService.instant('taskDetail.taskCompleted')}`\n );\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 private setDocumentDefinitionNameInService(task: Task): void {\n this.documentService\n .getProcessDocumentDefinitionFromProcessInstanceId(task.processInstanceId)\n .subscribe(processDocumentDefinition => {\n this.modalService.setDocumentDefinitionName(\n processDocumentDefinition.id.documentDefinitionId.name\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 {ConfigService, SortState, TaskListTab} 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 visibleTabs: Array<TaskListTab> | null = null;\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 constructor(\n private taskService: TaskService,\n private router: Router,\n private logger: NGXLogger,\n private translateService: TranslateService,\n private configService: ConfigService\n ) {\n this.visibleTabs = this.configService.config?.visibleTaskListTabs || null;\n if (this.visibleTabs != null) {\n this.currentTaskType = this.visibleTabs[0];\n }\n this.setDefaultSorting();\n }\n\n public paginationClicked(page: number, type: string) {\n this.tasks[type].page = page - 1;\n this.getTasks(type);\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 this.getTasks(tab.nextId);\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 ...(column.enum && {enum: column.enum}),\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\n *ngIf=\"visibleTabs === null; else configuredTabs\"\n ngbNav\n [destroyOnHide]=\"false\"\n (navChange)=\"tabChange($event)\"\n class=\"nav-tabs\"\n >\n <li ngbNavItem=\"mine\" [title]=\"'task-list.mine.title' | translate\">\n <a ngbNavLink>{{ 'task-list.mine.title' | translate }}</a>\n </li>\n <li ngbNavItem=\"open\" [title]=\"'task-list.open.title' | translate\">\n <a ngbNavLink>{{ 'task-list.open.title' | translate }}</a>\n </li>\n <li ngbNavItem=\"all\" [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<ng-template #configuredTabs>\n <ul ngbNav [destroyOnHide]=\"false\" (navChange)=\"tabChange($event)\" class=\"nav-tabs\">\n <li\n *ngFor=\"let tab of visibleTabs\"\n [ngbNavItem]=\"tab\"\n [title]=\"'task-list.' + tab + '.title' | translate\"\n >\n <a ngbNavLink>{{ 'task-list.' + tab + '.title' | translate }}</a>\n </li>\n </ul>\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 {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","i9","i10.AssignUserToTaskComponent","i11","i5","i6","i7.TaskDetailModalComponent","i8"],"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,OAAO,EAAE,UAAU,EAAE,MAAM,EAAC,CAAC,CAAC;KACvF;I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,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 OnDestroy,\n OnInit,\n Output,\n SimpleChanges,\n} from '@angular/core';\nimport {DropdownItem} from '@valtimo/components';\nimport {BehaviorSubject, combineLatest, Subscription} 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, OnDestroy {\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 private _subscriptions = new Subscription();\n\n constructor(private taskService: TaskService) {}\n\n ngOnInit(): void {\n this._subscriptions.add(\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\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 ngOnDestroy() {\n this._subscriptions.unsubscribe();\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 ValtimoModalService,\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';\nimport {DocumentService} from '@valtimo/document';\nimport {TranslateService} from '@ngx-translate/core';\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 readonly isAdmin$: Observable<boolean> = this.userProviderService\n .getUserSubject()\n .pipe(map(userIdentity => userIdentity?.roles?.includes('ROLE_ADMIN')));\n private formAssociation: FormAssociation;\n private taskProcessLinkType$ = new BehaviorSubject<TaskProcessLinkType | null>(null);\n processLinkIsForm$ = this.taskProcessLinkType$.pipe(map(type => type === 'form'));\n processLinkIsFormFlow$ = this.taskProcessLinkType$.pipe(map(type => type === 'form-flow'));\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 private readonly userProviderService: UserProviderService,\n private readonly modalService: ValtimoModalService,\n private readonly documentService: DocumentService,\n private readonly translateService: TranslateService\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 this.setDocumentDefinitionNameInService(task);\n\n this.task = task;\n this.page = {\n title: task.name,\n subtitle: `${this.translateService.instant('taskDetail.taskCreated')} ${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.modalService.scrollToTop();\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(\n `${this.task.name} ${this.translateService.instant('taskDetail.taskCompleted')}`\n );\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 private setDocumentDefinitionNameInService(task: Task): void {\n this.documentService\n .getProcessDocumentDefinitionFromProcessInstanceId(task.processInstanceId)\n .subscribe(processDocumentDefinition => {\n this.modalService.setDocumentDefinitionName(\n processDocumentDefinition.id.documentDefinitionId.name\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 {ConfigService, SortState, TaskListTab} 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 visibleTabs: Array<TaskListTab> | null = null;\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 constructor(\n private taskService: TaskService,\n private router: Router,\n private logger: NGXLogger,\n private translateService: TranslateService,\n private configService: ConfigService\n ) {\n this.visibleTabs = this.configService.config?.visibleTaskListTabs || null;\n if (this.visibleTabs != null) {\n this.currentTaskType = this.visibleTabs[0];\n }\n this.setDefaultSorting();\n }\n\n public paginationClicked(page: number, type: string) {\n this.tasks[type].page = page - 1;\n this.getTasks(type);\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 this.getTasks(tab.nextId);\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 ...(column.enum && {enum: column.enum}),\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\n *ngIf=\"visibleTabs === null; else configuredTabs\"\n ngbNav\n [destroyOnHide]=\"false\"\n (navChange)=\"tabChange($event)\"\n class=\"nav-tabs\"\n >\n <li ngbNavItem=\"mine\" [title]=\"'task-list.mine.title' | translate\">\n <a ngbNavLink>{{ 'task-list.mine.title' | translate }}</a>\n </li>\n <li ngbNavItem=\"open\" [title]=\"'task-list.open.title' | translate\">\n <a ngbNavLink>{{ 'task-list.open.title' | translate }}</a>\n </li>\n <li ngbNavItem=\"all\" [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<ng-template #configuredTabs>\n <ul ngbNav [destroyOnHide]=\"false\" (navChange)=\"tabChange($event)\" class=\"nav-tabs\">\n <li\n *ngFor=\"let tab of visibleTabs\"\n [ngbNavItem]=\"tab\"\n [title]=\"'task-list.' + tab + '.title' | translate\"\n >\n <a ngbNavLink>{{ 'task-list.' + tab + '.title' | translate }}</a>\n </li>\n </ul>\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 {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","i9","i10.AssignUserToTaskComponent","i11","i5","i6","i7.TaskDetailModalComponent","i8"],"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,OAAO,EAAE,UAAU,EAAE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ChB,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;;;;"}
|
|
@@ -156,9 +156,9 @@ class TaskService {
|
|
|
156
156
|
return this.configService.config.customTaskList;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
TaskService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
160
|
-
TaskService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.
|
|
161
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
159
|
+
TaskService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: TaskService, deps: [{ token: i1.HttpClient }, { token: i2.ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
160
|
+
TaskService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: TaskService, providedIn: 'root' });
|
|
161
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: TaskService, decorators: [{
|
|
162
162
|
type: Injectable,
|
|
163
163
|
args: [{ providedIn: 'root' }]
|
|
164
164
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: i2.ConfigService }]; } });
|
|
@@ -271,9 +271,9 @@ class AssignUserToTaskComponent {
|
|
|
271
271
|
this.disabled$.next(true);
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
|
-
AssignUserToTaskComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
275
|
-
AssignUserToTaskComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.
|
|
276
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
274
|
+
AssignUserToTaskComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AssignUserToTaskComponent, deps: [{ token: TaskService }], target: i0.ɵɵFactoryTarget.Component });
|
|
275
|
+
AssignUserToTaskComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", 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 } });
|
|
276
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AssignUserToTaskComponent, decorators: [{
|
|
277
277
|
type: Component,
|
|
278
278
|
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"] }]
|
|
279
279
|
}], ctorParameters: function () { return [{ type: TaskService }]; }, propDecorators: { taskId: [{
|
|
@@ -470,9 +470,9 @@ class TaskDetailModalComponent {
|
|
|
470
470
|
});
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
TaskDetailModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
474
|
-
TaskDetailModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.
|
|
475
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
473
|
+
TaskDetailModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", 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 }, { token: i7.ValtimoModalService }, { token: i8.DocumentService }, { token: i4.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
474
|
+
TaskDetailModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", 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", "readOnly", "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 });
|
|
475
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: TaskDetailModalComponent, decorators: [{
|
|
476
476
|
type: Component,
|
|
477
477
|
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"] }]
|
|
478
478
|
}], 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 }, { type: i7.ValtimoModalService }, { type: i8.DocumentService }, { type: i4.TranslateService }]; }, propDecorators: { form: [{
|
|
@@ -661,9 +661,9 @@ class TaskListComponent {
|
|
|
661
661
|
this.translationSubscription.unsubscribe();
|
|
662
662
|
}
|
|
663
663
|
}
|
|
664
|
-
TaskListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
665
|
-
TaskListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.
|
|
666
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
664
|
+
TaskListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: TaskListComponent, deps: [{ token: TaskService }, { token: i3$1.Router }, { token: i4$1.NGXLogger }, { token: i4.TranslateService }, { token: i2.ConfigService }], target: i0.ɵɵFactoryTarget.Component });
|
|
665
|
+
TaskListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", 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\n *ngIf=\"visibleTabs === null; else configuredTabs\"\n ngbNav\n [destroyOnHide]=\"false\"\n (navChange)=\"tabChange($event)\"\n class=\"nav-tabs\"\n >\n <li ngbNavItem=\"mine\" [title]=\"'task-list.mine.title' | translate\">\n <a ngbNavLink>{{ 'task-list.mine.title' | translate }}</a>\n </li>\n <li ngbNavItem=\"open\" [title]=\"'task-list.open.title' | translate\">\n <a ngbNavLink>{{ 'task-list.open.title' | translate }}</a>\n </li>\n <li ngbNavItem=\"all\" [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<ng-template #configuredTabs>\n <ul ngbNav [destroyOnHide]=\"false\" (navChange)=\"tabChange($event)\" class=\"nav-tabs\">\n <li\n *ngFor=\"let tab of visibleTabs\"\n [ngbNavItem]=\"tab\"\n [title]=\"'task-list.' + tab + '.title' | translate\"\n >\n <a ngbNavLink>{{ 'task-list.' + tab + '.title' | translate }}</a>\n </li>\n </ul>\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 */.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", "lastColumnTemplate"], outputs: ["rowClicked", "paginationClicked", "paginationSet", "search", "sortChanged"] }, { type: TaskDetailModalComponent, selector: "valtimo-task-detail-modal", outputs: ["formSubmit", "assignmentOfTaskChanged"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i9.NgbNav, selector: "[ngbNav]", inputs: ["activeId", "animation", "destroyOnHide", "orientation", "roles", "keyboard"], outputs: ["activeIdChange", "shown", "hidden", "navChange"], exportAs: ["ngbNav"] }, { type: i9.NgbNavItem, selector: "[ngbNavItem]", inputs: ["destroyOnHide", "disabled", "domId", "ngbNavItem"], outputs: ["shown", "hidden"], exportAs: ["ngbNavItem"] }, { type: i9.NgbNavLink, selector: "a[ngbNavLink]" }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "translate": i4.TranslatePipe }, encapsulation: i0.ViewEncapsulation.None });
|
|
666
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: TaskListComponent, decorators: [{
|
|
667
667
|
type: Component,
|
|
668
668
|
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\n *ngIf=\"visibleTabs === null; else configuredTabs\"\n ngbNav\n [destroyOnHide]=\"false\"\n (navChange)=\"tabChange($event)\"\n class=\"nav-tabs\"\n >\n <li ngbNavItem=\"mine\" [title]=\"'task-list.mine.title' | translate\">\n <a ngbNavLink>{{ 'task-list.mine.title' | translate }}</a>\n </li>\n <li ngbNavItem=\"open\" [title]=\"'task-list.open.title' | translate\">\n <a ngbNavLink>{{ 'task-list.open.title' | translate }}</a>\n </li>\n <li ngbNavItem=\"all\" [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<ng-template #configuredTabs>\n <ul ngbNav [destroyOnHide]=\"false\" (navChange)=\"tabChange($event)\" class=\"nav-tabs\">\n <li\n *ngFor=\"let tab of visibleTabs\"\n [ngbNavItem]=\"tab\"\n [title]=\"'task-list.' + tab + '.title' | translate\"\n >\n <a ngbNavLink>{{ 'task-list.' + tab + '.title' | translate }}</a>\n </li>\n </ul>\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 */.tab-content{padding:0;margin:0}.nav.nav-tabs{background-color:#f5f5f5}\n"] }]
|
|
669
669
|
}], ctorParameters: function () { return [{ type: TaskService }, { type: i3$1.Router }, { type: i4$1.NGXLogger }, { type: i4.TranslateService }, { type: i2.ConfigService }]; }, propDecorators: { taskDetail: [{
|
|
@@ -696,10 +696,10 @@ const routes = [
|
|
|
696
696
|
];
|
|
697
697
|
class TaskRoutingModule {
|
|
698
698
|
}
|
|
699
|
-
TaskRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
700
|
-
TaskRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.
|
|
701
|
-
TaskRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.
|
|
702
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
699
|
+
TaskRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: TaskRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
700
|
+
TaskRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: TaskRoutingModule, imports: [CommonModule, i3$1.RouterModule], exports: [RouterModule] });
|
|
701
|
+
TaskRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: TaskRoutingModule, imports: [[CommonModule, RouterModule.forChild(routes)], RouterModule] });
|
|
702
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: TaskRoutingModule, decorators: [{
|
|
703
703
|
type: NgModule,
|
|
704
704
|
args: [{
|
|
705
705
|
declarations: [],
|
|
@@ -725,8 +725,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
725
725
|
*/
|
|
726
726
|
class TaskModule {
|
|
727
727
|
}
|
|
728
|
-
TaskModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
729
|
-
TaskModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.
|
|
728
|
+
TaskModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: TaskModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
729
|
+
TaskModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: TaskModule, declarations: [TaskListComponent, TaskDetailModalComponent, AssignUserToTaskComponent], imports: [CommonModule,
|
|
730
730
|
TaskRoutingModule,
|
|
731
731
|
ListModule,
|
|
732
732
|
PageHeaderModule,
|
|
@@ -738,7 +738,7 @@ TaskModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13
|
|
|
738
738
|
FormsModule, i1$1.ToastrModule, i4.TranslateModule, NgbModule,
|
|
739
739
|
FormIoModule,
|
|
740
740
|
ModalModule], exports: [TaskListComponent, TaskDetailModalComponent, AssignUserToTaskComponent] });
|
|
741
|
-
TaskModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.
|
|
741
|
+
TaskModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: TaskModule, imports: [[
|
|
742
742
|
CommonModule,
|
|
743
743
|
TaskRoutingModule,
|
|
744
744
|
ListModule,
|
|
@@ -764,7 +764,7 @@ TaskModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13
|
|
|
764
764
|
FormIoModule,
|
|
765
765
|
ModalModule,
|
|
766
766
|
]] });
|
|
767
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
767
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: TaskModule, decorators: [{
|
|
768
768
|
type: NgModule,
|
|
769
769
|
args: [{
|
|
770
770
|
declarations: [TaskListComponent, TaskDetailModalComponent, AssignUserToTaskComponent],
|