@valtimo/task 4.15.3-next-main.16 → 4.16.0-next-main.19

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.
Files changed (32) hide show
  1. package/bundles/valtimo-task.umd.js +928 -847
  2. package/bundles/valtimo-task.umd.js.map +1 -1
  3. package/bundles/valtimo-task.umd.min.js +1 -1
  4. package/bundles/valtimo-task.umd.min.js.map +1 -1
  5. package/esm2015/lib/assign-user-to-task/assign-user-to-task.component.js +124 -124
  6. package/esm2015/lib/models/index.js +21 -0
  7. package/esm2015/lib/models/task-definition.model.js +16 -0
  8. package/esm2015/lib/models/task-list.model.js +29 -0
  9. package/esm2015/lib/models/task.model.js +16 -0
  10. package/esm2015/lib/task-detail-modal/task-detail-modal.component.js +127 -127
  11. package/esm2015/lib/task-list/task-list.component.js +166 -166
  12. package/esm2015/lib/task-routing.module.js +41 -41
  13. package/esm2015/lib/task.module.js +66 -66
  14. package/esm2015/lib/task.service.js +60 -60
  15. package/esm2015/public_api.js +24 -23
  16. package/esm2015/valtimo-task.js +7 -7
  17. package/fesm2015/valtimo-task.js +620 -542
  18. package/fesm2015/valtimo-task.js.map +1 -1
  19. package/lib/assign-user-to-task/assign-user-to-task.component.d.ts +27 -26
  20. package/lib/models/index.d.ts +3 -0
  21. package/lib/models/task-definition.model.d.ts +6 -0
  22. package/lib/models/task-list.model.d.ts +11 -0
  23. package/lib/models/task.model.d.ts +38 -0
  24. package/lib/task-detail-modal/task-detail-modal.component.d.ts +31 -31
  25. package/lib/task-list/task-list.component.d.ts +32 -32
  26. package/lib/task-routing.module.d.ts +2 -2
  27. package/lib/task.module.d.ts +2 -2
  28. package/lib/task.service.d.ts +16 -16
  29. package/package.json +1 -1
  30. package/public_api.d.ts +5 -4
  31. package/valtimo-task.d.ts +6 -6
  32. package/valtimo-task.metadata.json +1 -1
@@ -1,871 +1,952 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common/http'), require('@valtimo/config'), require('@angular/common'), require('@angular/forms'), require('@angular/platform-browser/animations'), require('@ng-bootstrap/ng-bootstrap'), require('@ngx-translate/core'), require('@valtimo/components'), require('@valtimo/contract'), require('ngx-toastr'), require('@angular/router'), require('@valtimo/form-link'), require('moment'), require('ngx-logger'), require('rxjs/operators'), require('rxjs'), require('@valtimo/security')) :
3
- typeof define === 'function' && define.amd ? define('@valtimo/task', ['exports', '@angular/core', '@angular/common/http', '@valtimo/config', '@angular/common', '@angular/forms', '@angular/platform-browser/animations', '@ng-bootstrap/ng-bootstrap', '@ngx-translate/core', '@valtimo/components', '@valtimo/contract', 'ngx-toastr', '@angular/router', '@valtimo/form-link', 'moment', 'ngx-logger', 'rxjs/operators', 'rxjs', '@valtimo/security'], factory) :
4
- (global = global || self, factory((global.valtimo = global.valtimo || {}, global.valtimo.task = {}), global.ng.core, global.ng.common.http, global.config, global.ng.common, global.ng.forms, global.ng.platformBrowser.animations, global.ngBootstrap, global.core$1, global.components, global.contract, global.ngxToastr, global.ng.router, global.formLink, global.moment, global.ngxLogger, global.rxjs.operators, global.rxjs, global.security));
5
- }(this, (function (exports, i0, i1, i2, common, forms, animations, ngBootstrap, core, components, contract, ngxToastr, router, formLink, momentImported, ngxLogger, operators, rxjs, security) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common/http'), require('@valtimo/config'), require('@angular/common'), require('@angular/forms'), require('@angular/platform-browser/animations'), require('@ng-bootstrap/ng-bootstrap'), require('@ngx-translate/core'), require('@valtimo/components'), require('ngx-toastr'), require('@angular/router'), require('@valtimo/form-link'), require('moment'), require('ngx-logger'), require('rxjs/operators'), require('rxjs'), require('@valtimo/security')) :
3
+ typeof define === 'function' && define.amd ? define('@valtimo/task', ['exports', '@angular/core', '@angular/common/http', '@valtimo/config', '@angular/common', '@angular/forms', '@angular/platform-browser/animations', '@ng-bootstrap/ng-bootstrap', '@ngx-translate/core', '@valtimo/components', 'ngx-toastr', '@angular/router', '@valtimo/form-link', 'moment', 'ngx-logger', 'rxjs/operators', 'rxjs', '@valtimo/security'], factory) :
4
+ (global = global || self, factory((global.valtimo = global.valtimo || {}, global.valtimo.task = {}), global.ng.core, global.ng.common.http, global.config, global.ng.common, global.ng.forms, global.ng.platformBrowser.animations, global.ngBootstrap, global.core$1, global.components, global.ngxToastr, global.ng.router, global.formLink, global.moment, global.ngxLogger, global.rxjs.operators, global.rxjs, global.security));
5
+ }(this, (function (exports, i0, i1, i2, common, forms, animations, ngBootstrap, core, components, ngxToastr, router, formLink, momentImported, ngxLogger, operators, rxjs, security) { 'use strict';
6
6
 
7
- /*
8
- * Copyright 2015-2020 Ritense BV, the Netherlands.
9
- *
10
- * Licensed under EUPL, Version 1.2 (the "License");
11
- * you may not use this file except in compliance with the License.
12
- * You may obtain a copy of the License at
13
- *
14
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
15
- *
16
- * Unless required by applicable law or agreed to in writing, software
17
- * distributed under the License is distributed on an "AS IS" basis,
18
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
- * See the License for the specific language governing permissions and
20
- * limitations under the License.
21
- */
22
- var TaskService = /** @class */ (function () {
23
- function TaskService(http, configService) {
24
- this.http = http;
25
- this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;
26
- }
27
- TaskService.prototype.queryTasks = function (params) {
28
- return this.http.get(this.valtimoEndpointUri + "task", { observe: 'response', params: params });
29
- };
30
- TaskService.prototype.getTasks = function () {
31
- return this.http.get(this.valtimoEndpointUri + "task?filter=all");
32
- };
33
- TaskService.prototype.getTask = function (id) {
34
- return this.http.get(this.valtimoEndpointUri + 'task/' + id);
35
- };
36
- TaskService.prototype.getCandidateUsers = function (id) {
37
- return this.http.get(this.valtimoEndpointUri + 'task/' + id + '/candidate-user');
38
- };
39
- TaskService.prototype.assignTask = function (id, assigneeRequest) {
40
- return this.http.post(this.valtimoEndpointUri + 'task/' + id + '/assign', assigneeRequest);
41
- };
42
- TaskService.prototype.unassignTask = function (id) {
43
- return this.http.post(this.valtimoEndpointUri + 'task/' + id + '/unassign', null);
44
- };
45
- TaskService.prototype.completeTask = function (id, variables) {
46
- return this.http.post(this.valtimoEndpointUri + 'task/' + id + '/complete', {
47
- variables: variables,
48
- filesToDelete: [],
49
- });
50
- };
51
- return TaskService;
52
- }());
53
- TaskService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TaskService_Factory() { return new TaskService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.ConfigService)); }, token: TaskService, providedIn: "root" });
54
- TaskService.decorators = [
55
- { type: i0.Injectable, args: [{ providedIn: 'root' },] }
56
- ];
57
- TaskService.ctorParameters = function () { return [
58
- { type: i1.HttpClient },
59
- { type: i2.ConfigService }
7
+ /*
8
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
9
+ *
10
+ * Licensed under EUPL, Version 1.2 (the "License");
11
+ * you may not use this file except in compliance with the License.
12
+ * You may obtain a copy of the License at
13
+ *
14
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
15
+ *
16
+ * Unless required by applicable law or agreed to in writing, software
17
+ * distributed under the License is distributed on an "AS IS" basis,
18
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ * See the License for the specific language governing permissions and
20
+ * limitations under the License.
21
+ */
22
+
23
+ /*
24
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
25
+ *
26
+ * Licensed under EUPL, Version 1.2 (the "License");
27
+ * you may not use this file except in compliance with the License.
28
+ * You may obtain a copy of the License at
29
+ *
30
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
31
+ *
32
+ * Unless required by applicable law or agreed to in writing, software
33
+ * distributed under the License is distributed on an "AS IS" basis,
34
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
35
+ * See the License for the specific language governing permissions and
36
+ * limitations under the License.
37
+ */
38
+
39
+ /*
40
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
41
+ *
42
+ * Licensed under EUPL, Version 1.2 (the "License");
43
+ * you may not use this file except in compliance with the License.
44
+ * You may obtain a copy of the License at
45
+ *
46
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
47
+ *
48
+ * Unless required by applicable law or agreed to in writing, software
49
+ * distributed under the License is distributed on an "AS IS" basis,
50
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
51
+ * See the License for the specific language governing permissions and
52
+ * limitations under the License.
53
+ */
54
+ var TaskList = /** @class */ (function () {
55
+ function TaskList() {
56
+ this.tasks = [];
57
+ this.fields = [];
58
+ this.pagination = {
59
+ collectionSize: 0,
60
+ page: 1,
61
+ size: 10,
62
+ maxPaginationItemSize: 5,
63
+ };
64
+ this.page = 0;
65
+ }
66
+ return TaskList;
67
+ }());
68
+
69
+ /*
70
+ *
71
+ * * Copyright 2015-2020 Ritense BV, the Netherlands.
72
+ * *
73
+ * * Licensed under EUPL, Version 1.2 (the "License");
74
+ * * you may not use this file except in compliance with the License.
75
+ * * You may obtain a copy of the License at
76
+ * *
77
+ * * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
78
+ * *
79
+ * * Unless required by applicable law or agreed to in writing, software
80
+ * * distributed under the License is distributed on an "AS IS" basis,
81
+ * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
82
+ * * See the License for the specific language governing permissions and
83
+ * * limitations under the License.
84
+ *
85
+ */
86
+
87
+ /*
88
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
89
+ *
90
+ * Licensed under EUPL, Version 1.2 (the "License");
91
+ * you may not use this file except in compliance with the License.
92
+ * You may obtain a copy of the License at
93
+ *
94
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
95
+ *
96
+ * Unless required by applicable law or agreed to in writing, software
97
+ * distributed under the License is distributed on an "AS IS" basis,
98
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
99
+ * See the License for the specific language governing permissions and
100
+ * limitations under the License.
101
+ */
102
+ var TaskService = /** @class */ (function () {
103
+ function TaskService(http, configService) {
104
+ this.http = http;
105
+ this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;
106
+ }
107
+ TaskService.prototype.queryTasks = function (params) {
108
+ return this.http.get(this.valtimoEndpointUri + "task", { observe: 'response', params: params });
109
+ };
110
+ TaskService.prototype.getTasks = function () {
111
+ return this.http.get(this.valtimoEndpointUri + "task?filter=all");
112
+ };
113
+ TaskService.prototype.getTask = function (id) {
114
+ return this.http.get(this.valtimoEndpointUri + 'task/' + id);
115
+ };
116
+ TaskService.prototype.getCandidateUsers = function (id) {
117
+ return this.http.get(this.valtimoEndpointUri + 'task/' + id + '/candidate-user');
118
+ };
119
+ TaskService.prototype.assignTask = function (id, assigneeRequest) {
120
+ return this.http.post(this.valtimoEndpointUri + 'task/' + id + '/assign', assigneeRequest);
121
+ };
122
+ TaskService.prototype.unassignTask = function (id) {
123
+ return this.http.post(this.valtimoEndpointUri + 'task/' + id + '/unassign', null);
124
+ };
125
+ TaskService.prototype.completeTask = function (id, variables) {
126
+ return this.http.post(this.valtimoEndpointUri + 'task/' + id + '/complete', {
127
+ variables: variables,
128
+ filesToDelete: [],
129
+ });
130
+ };
131
+ return TaskService;
132
+ }());
133
+ TaskService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TaskService_Factory() { return new TaskService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.ConfigService)); }, token: TaskService, providedIn: "root" });
134
+ TaskService.decorators = [
135
+ { type: i0.Injectable, args: [{ providedIn: 'root' },] }
136
+ ];
137
+ TaskService.ctorParameters = function () { return [
138
+ { type: i1.HttpClient },
139
+ { type: i2.ConfigService }
60
140
  ]; };
61
141
 
62
- /*
63
- * Copyright 2015-2020 Ritense BV, the Netherlands.
64
- *
65
- * Licensed under EUPL, Version 1.2 (the "License");
66
- * you may not use this file except in compliance with the License.
67
- * You may obtain a copy of the License at
68
- *
69
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
70
- *
71
- * Unless required by applicable law or agreed to in writing, software
72
- * distributed under the License is distributed on an "AS IS" basis,
73
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
74
- * See the License for the specific language governing permissions and
75
- * limitations under the License.
76
- */
77
- var moment = momentImported;
78
- moment.locale(localStorage.getItem('langKey') || '');
79
- var TaskDetailModalComponent = /** @class */ (function () {
80
- function TaskDetailModalComponent(toastr, formLinkService, router, logger, route) {
81
- this.toastr = toastr;
82
- this.formLinkService = formLinkService;
83
- this.router = router;
84
- this.logger = logger;
85
- this.route = route;
86
- this.task = null;
87
- this.page = null;
88
- this.formSubmit = new i0.EventEmitter();
89
- this.assignmentOfTaskChanged = new i0.EventEmitter();
90
- this.errorMessage = null;
91
- this.formioOptions = new contract.FormioOptionsImpl();
92
- this.formioOptions.disableAlerts = true;
93
- }
94
- TaskDetailModalComponent.prototype.resetFormDefinition = function () {
95
- // reset formDefinition in order to reload form-io component
96
- this.formDefinition = null;
97
- };
98
- TaskDetailModalComponent.prototype.openTaskDetails = function (task) {
99
- var _this = this;
100
- this.resetFormDefinition();
101
- this.task = task;
102
- this.page = {
103
- title: task.name,
104
- subtitle: "Created " + moment(task.created).fromNow(),
105
- };
106
- this.formLinkService
107
- .getPreFilledFormDefinitionByFormLinkId(task.processDefinitionKey, task.businessKey, task.taskDefinitionKey, task.id // taskInstanceId
108
- )
109
- .subscribe(function (formDefinition) {
110
- _this.formAssociation = formDefinition.formAssociation;
111
- var className = _this.formAssociation.formLink.className.split('.');
112
- var linkType = className[className.length - 1];
113
- switch (linkType) {
114
- case 'BpmnElementFormIdLink':
115
- _this.formDefinition = formDefinition;
116
- _this.modal.show();
117
- break;
118
- case 'BpmnElementUrlLink':
119
- var url = _this.router.serializeUrl(_this.router.createUrlTree([formDefinition.formAssociation.formLink.url]));
120
- window.open(url, '_blank');
121
- break;
122
- case 'BpmnElementAngularStateUrlLink':
123
- _this.route.params.pipe(operators.take(1)).subscribe(function (params) {
124
- var taskId = task === null || task === void 0 ? void 0 : task.id;
125
- var documentId = params === null || params === void 0 ? void 0 : params.documentId;
126
- _this.router.navigate([formDefinition.formAssociation.formLink.url], {
127
- state: Object.assign(Object.assign({}, (taskId && { taskId: taskId })), (documentId && { documentId: documentId })),
128
- });
129
- });
130
- break;
131
- default:
132
- _this.logger.fatal('Unsupported class name');
133
- }
134
- }, function (errors) {
135
- var _a;
136
- if ((_a = errors === null || errors === void 0 ? void 0 : errors.error) === null || _a === void 0 ? void 0 : _a.detail) {
137
- _this.errorMessage = errors.error.detail;
138
- }
139
- _this.modal.show();
140
- });
141
- };
142
- TaskDetailModalComponent.prototype.gotoFormLinkScreen = function () {
143
- this.modal.hide();
144
- this.router.navigate(['form-links']);
145
- };
146
- TaskDetailModalComponent.prototype.onSubmit = function (submission) {
147
- var _this = this;
148
- this.formLinkService
149
- .onSubmit(this.task.processDefinitionKey, this.formAssociation.formLink.id, submission.data, this.task.businessKey, this.task.id)
150
- .subscribe(function (formSubmissionResult) {
151
- _this.toastr.success(_this.task.name + ' has successfully been completed');
152
- _this.modal.hide();
153
- _this.task = null;
154
- _this.formSubmit.emit();
155
- }, function (errors) {
156
- _this.form.showErrors(errors);
157
- });
158
- };
159
- return TaskDetailModalComponent;
160
- }());
161
- TaskDetailModalComponent.decorators = [
162
- { type: i0.Component, args: [{
163
- selector: 'valtimo-task-detail-modal',
164
- 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 body *ngIf=\"formDefinition\">\n <valtimo-form-io\n #form\n [form]=\"formDefinition\"\n (submit)=\"onSubmit($event)\"\n [options]=\"formioOptions\"\n ></valtimo-form-io>\n </div>\n <div body *ngIf=\"!formDefinition && !errorMessage\">\n <div\n class=\"bg-warning text-black mb-0 p-3 text-center\"\n [translate]=\"'formManagement.noFormDefinitionFound'\"\n ></div>\n </div>\n <div body *ngIf=\"errorMessage\">\n <div class=\"bg-danger text-black mb-0 p-3 text-center\">\n {{ errorMessage }}\n </div>\n </div>\n <div footer>\n <div class=\"mb-0 p-3 text-center\" *ngIf=\"!formDefinition\">\n <button\n class=\"btn btn-secondary btn-space\"\n type=\"button\"\n (click)=\"gotoFormLinkScreen()\"\n id=\"form-link-button\"\n >\n {{ 'formManagement.gotoFormLinksButton' | translate }}\n </button>\n </div>\n </div>\n</valtimo-modal>\n\n<ng-template #assignUserToTask>\n <valtimo-assign-user-to-task\n *ngIf=\"task && assignmentOfTaskChanged\"\n [taskId]=\"task.id\"\n [assigneeEmail]=\"task.assignee\"\n (assignmentOfTaskChanged)=\"assignmentOfTaskChanged.emit()\"\n ></valtimo-assign-user-to-task>\n</ng-template>\n",
165
- encapsulation: i0.ViewEncapsulation.None,
166
- 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}"]
167
- },] }
168
- ];
169
- TaskDetailModalComponent.ctorParameters = function () { return [
170
- { type: ngxToastr.ToastrService },
171
- { type: formLink.FormLinkService },
172
- { type: router.Router },
173
- { type: ngxLogger.NGXLogger },
174
- { type: router.ActivatedRoute }
175
- ]; };
176
- TaskDetailModalComponent.propDecorators = {
177
- form: [{ type: i0.ViewChild, args: ['form',] }],
178
- modal: [{ type: i0.ViewChild, args: ['taskDetailModal',] }],
179
- formSubmit: [{ type: i0.Output }],
180
- assignmentOfTaskChanged: [{ type: i0.Output }]
142
+ /*
143
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
144
+ *
145
+ * Licensed under EUPL, Version 1.2 (the "License");
146
+ * you may not use this file except in compliance with the License.
147
+ * You may obtain a copy of the License at
148
+ *
149
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
150
+ *
151
+ * Unless required by applicable law or agreed to in writing, software
152
+ * distributed under the License is distributed on an "AS IS" basis,
153
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
154
+ * See the License for the specific language governing permissions and
155
+ * limitations under the License.
156
+ */
157
+ var moment = momentImported;
158
+ moment.locale(localStorage.getItem('langKey') || '');
159
+ var TaskDetailModalComponent = /** @class */ (function () {
160
+ function TaskDetailModalComponent(toastr, formLinkService, router, logger, route) {
161
+ this.toastr = toastr;
162
+ this.formLinkService = formLinkService;
163
+ this.router = router;
164
+ this.logger = logger;
165
+ this.route = route;
166
+ this.task = null;
167
+ this.page = null;
168
+ this.formSubmit = new i0.EventEmitter();
169
+ this.assignmentOfTaskChanged = new i0.EventEmitter();
170
+ this.errorMessage = null;
171
+ this.formioOptions = new components.FormioOptionsImpl();
172
+ this.formioOptions.disableAlerts = true;
173
+ }
174
+ TaskDetailModalComponent.prototype.resetFormDefinition = function () {
175
+ // reset formDefinition in order to reload form-io component
176
+ this.formDefinition = null;
177
+ };
178
+ TaskDetailModalComponent.prototype.openTaskDetails = function (task) {
179
+ var _this = this;
180
+ this.resetFormDefinition();
181
+ this.task = task;
182
+ this.page = {
183
+ title: task.name,
184
+ subtitle: "Created " + moment(task.created).fromNow(),
185
+ };
186
+ this.formLinkService
187
+ .getPreFilledFormDefinitionByFormLinkId(task.processDefinitionKey, task.businessKey, task.taskDefinitionKey, task.id // taskInstanceId
188
+ )
189
+ .subscribe(function (formDefinition) {
190
+ _this.formAssociation = formDefinition.formAssociation;
191
+ var className = _this.formAssociation.formLink.className.split('.');
192
+ var linkType = className[className.length - 1];
193
+ switch (linkType) {
194
+ case 'BpmnElementFormIdLink':
195
+ _this.formDefinition = formDefinition;
196
+ _this.modal.show();
197
+ break;
198
+ case 'BpmnElementUrlLink':
199
+ var url = _this.router.serializeUrl(_this.router.createUrlTree([formDefinition.formAssociation.formLink.url]));
200
+ window.open(url, '_blank');
201
+ break;
202
+ case 'BpmnElementAngularStateUrlLink':
203
+ _this.route.params.pipe(operators.take(1)).subscribe(function (params) {
204
+ var taskId = task === null || task === void 0 ? void 0 : task.id;
205
+ var documentId = params === null || params === void 0 ? void 0 : params.documentId;
206
+ _this.router.navigate([formDefinition.formAssociation.formLink.url], {
207
+ state: Object.assign(Object.assign({}, (taskId && { taskId: taskId })), (documentId && { documentId: documentId })),
208
+ });
209
+ });
210
+ break;
211
+ default:
212
+ _this.logger.fatal('Unsupported class name');
213
+ }
214
+ }, function (errors) {
215
+ var _a;
216
+ if ((_a = errors === null || errors === void 0 ? void 0 : errors.error) === null || _a === void 0 ? void 0 : _a.detail) {
217
+ _this.errorMessage = errors.error.detail;
218
+ }
219
+ _this.modal.show();
220
+ });
221
+ };
222
+ TaskDetailModalComponent.prototype.gotoFormLinkScreen = function () {
223
+ this.modal.hide();
224
+ this.router.navigate(['form-links']);
225
+ };
226
+ TaskDetailModalComponent.prototype.onSubmit = function (submission) {
227
+ var _this = this;
228
+ this.formLinkService
229
+ .onSubmit(this.task.processDefinitionKey, this.formAssociation.formLink.id, submission.data, this.task.businessKey, this.task.id)
230
+ .subscribe(function (formSubmissionResult) {
231
+ _this.toastr.success(_this.task.name + ' has successfully been completed');
232
+ _this.modal.hide();
233
+ _this.task = null;
234
+ _this.formSubmit.emit();
235
+ }, function (errors) {
236
+ _this.form.showErrors(errors);
237
+ });
238
+ };
239
+ return TaskDetailModalComponent;
240
+ }());
241
+ TaskDetailModalComponent.decorators = [
242
+ { type: i0.Component, args: [{
243
+ selector: 'valtimo-task-detail-modal',
244
+ 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 body *ngIf=\"formDefinition\">\n <valtimo-form-io\n #form\n [form]=\"formDefinition\"\n (submit)=\"onSubmit($event)\"\n [options]=\"formioOptions\"\n ></valtimo-form-io>\n </div>\n <div body *ngIf=\"!formDefinition && !errorMessage\">\n <div\n class=\"bg-warning text-black mb-0 p-3 text-center\"\n [translate]=\"'formManagement.noFormDefinitionFound'\"\n ></div>\n </div>\n <div body *ngIf=\"errorMessage\">\n <div class=\"bg-danger text-black mb-0 p-3 text-center\">\n {{ errorMessage }}\n </div>\n </div>\n <div footer>\n <div class=\"mb-0 p-3 text-center\" *ngIf=\"!formDefinition\">\n <button\n class=\"btn btn-secondary btn-space\"\n type=\"button\"\n (click)=\"gotoFormLinkScreen()\"\n id=\"form-link-button\"\n >\n {{ 'formManagement.gotoFormLinksButton' | translate }}\n </button>\n </div>\n </div>\n</valtimo-modal>\n\n<ng-template #assignUserToTask>\n <valtimo-assign-user-to-task\n *ngIf=\"task && assignmentOfTaskChanged\"\n [taskId]=\"task.id\"\n [assigneeEmail]=\"task.assignee\"\n (assignmentOfTaskChanged)=\"assignmentOfTaskChanged.emit()\"\n ></valtimo-assign-user-to-task>\n</ng-template>\n",
245
+ encapsulation: i0.ViewEncapsulation.None,
246
+ 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}"]
247
+ },] }
248
+ ];
249
+ TaskDetailModalComponent.ctorParameters = function () { return [
250
+ { type: ngxToastr.ToastrService },
251
+ { type: formLink.FormLinkService },
252
+ { type: router.Router },
253
+ { type: ngxLogger.NGXLogger },
254
+ { type: router.ActivatedRoute }
255
+ ]; };
256
+ TaskDetailModalComponent.propDecorators = {
257
+ form: [{ type: i0.ViewChild, args: ['form',] }],
258
+ modal: [{ type: i0.ViewChild, args: ['taskDetailModal',] }],
259
+ formSubmit: [{ type: i0.Output }],
260
+ assignmentOfTaskChanged: [{ type: i0.Output }]
181
261
  };
182
262
 
183
- /*! *****************************************************************************
184
- Copyright (c) Microsoft Corporation.
185
-
186
- Permission to use, copy, modify, and/or distribute this software for any
187
- purpose with or without fee is hereby granted.
188
-
189
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
190
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
191
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
192
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
193
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
194
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
195
- PERFORMANCE OF THIS SOFTWARE.
196
- ***************************************************************************** */
197
- /* global Reflect, Promise */
198
- var extendStatics = function (d, b) {
199
- extendStatics = Object.setPrototypeOf ||
200
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
201
- function (d, b) { for (var p in b)
202
- if (Object.prototype.hasOwnProperty.call(b, p))
203
- d[p] = b[p]; };
204
- return extendStatics(d, b);
205
- };
206
- function __extends(d, b) {
207
- if (typeof b !== "function" && b !== null)
208
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
209
- extendStatics(d, b);
210
- function __() { this.constructor = d; }
211
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
212
- }
213
- var __assign = function () {
214
- __assign = Object.assign || function __assign(t) {
215
- for (var s, i = 1, n = arguments.length; i < n; i++) {
216
- s = arguments[i];
217
- for (var p in s)
218
- if (Object.prototype.hasOwnProperty.call(s, p))
219
- t[p] = s[p];
220
- }
221
- return t;
222
- };
223
- return __assign.apply(this, arguments);
224
- };
225
- function __rest(s, e) {
226
- var t = {};
227
- for (var p in s)
228
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
229
- t[p] = s[p];
230
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
231
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
232
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
233
- t[p[i]] = s[p[i]];
234
- }
235
- return t;
236
- }
237
- function __decorate(decorators, target, key, desc) {
238
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
239
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
240
- r = Reflect.decorate(decorators, target, key, desc);
241
- else
242
- for (var i = decorators.length - 1; i >= 0; i--)
243
- if (d = decorators[i])
244
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
245
- return c > 3 && r && Object.defineProperty(target, key, r), r;
246
- }
247
- function __param(paramIndex, decorator) {
248
- return function (target, key) { decorator(target, key, paramIndex); };
249
- }
250
- function __metadata(metadataKey, metadataValue) {
251
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
252
- return Reflect.metadata(metadataKey, metadataValue);
253
- }
254
- function __awaiter(thisArg, _arguments, P, generator) {
255
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
256
- return new (P || (P = Promise))(function (resolve, reject) {
257
- function fulfilled(value) { try {
258
- step(generator.next(value));
259
- }
260
- catch (e) {
261
- reject(e);
262
- } }
263
- function rejected(value) { try {
264
- step(generator["throw"](value));
265
- }
266
- catch (e) {
267
- reject(e);
268
- } }
269
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
270
- step((generator = generator.apply(thisArg, _arguments || [])).next());
271
- });
272
- }
273
- function __generator(thisArg, body) {
274
- var _ = { label: 0, sent: function () { if (t[0] & 1)
275
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
276
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
277
- function verb(n) { return function (v) { return step([n, v]); }; }
278
- function step(op) {
279
- if (f)
280
- throw new TypeError("Generator is already executing.");
281
- while (_)
282
- try {
283
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
284
- return t;
285
- if (y = 0, t)
286
- op = [op[0] & 2, t.value];
287
- switch (op[0]) {
288
- case 0:
289
- case 1:
290
- t = op;
291
- break;
292
- case 4:
293
- _.label++;
294
- return { value: op[1], done: false };
295
- case 5:
296
- _.label++;
297
- y = op[1];
298
- op = [0];
299
- continue;
300
- case 7:
301
- op = _.ops.pop();
302
- _.trys.pop();
303
- continue;
304
- default:
305
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
306
- _ = 0;
307
- continue;
308
- }
309
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
310
- _.label = op[1];
311
- break;
312
- }
313
- if (op[0] === 6 && _.label < t[1]) {
314
- _.label = t[1];
315
- t = op;
316
- break;
317
- }
318
- if (t && _.label < t[2]) {
319
- _.label = t[2];
320
- _.ops.push(op);
321
- break;
322
- }
323
- if (t[2])
324
- _.ops.pop();
325
- _.trys.pop();
326
- continue;
327
- }
328
- op = body.call(thisArg, _);
329
- }
330
- catch (e) {
331
- op = [6, e];
332
- y = 0;
333
- }
334
- finally {
335
- f = t = 0;
336
- }
337
- if (op[0] & 5)
338
- throw op[1];
339
- return { value: op[0] ? op[1] : void 0, done: true };
340
- }
341
- }
342
- var __createBinding = Object.create ? (function (o, m, k, k2) {
343
- if (k2 === undefined)
344
- k2 = k;
345
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
346
- }) : (function (o, m, k, k2) {
347
- if (k2 === undefined)
348
- k2 = k;
349
- o[k2] = m[k];
350
- });
351
- function __exportStar(m, o) {
352
- for (var p in m)
353
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
354
- __createBinding(o, m, p);
355
- }
356
- function __values(o) {
357
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
358
- if (m)
359
- return m.call(o);
360
- if (o && typeof o.length === "number")
361
- return {
362
- next: function () {
363
- if (o && i >= o.length)
364
- o = void 0;
365
- return { value: o && o[i++], done: !o };
366
- }
367
- };
368
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
369
- }
370
- function __read(o, n) {
371
- var m = typeof Symbol === "function" && o[Symbol.iterator];
372
- if (!m)
373
- return o;
374
- var i = m.call(o), r, ar = [], e;
375
- try {
376
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
377
- ar.push(r.value);
378
- }
379
- catch (error) {
380
- e = { error: error };
381
- }
382
- finally {
383
- try {
384
- if (r && !r.done && (m = i["return"]))
385
- m.call(i);
386
- }
387
- finally {
388
- if (e)
389
- throw e.error;
390
- }
391
- }
392
- return ar;
393
- }
394
- /** @deprecated */
395
- function __spread() {
396
- for (var ar = [], i = 0; i < arguments.length; i++)
397
- ar = ar.concat(__read(arguments[i]));
398
- return ar;
399
- }
400
- /** @deprecated */
401
- function __spreadArrays() {
402
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
403
- s += arguments[i].length;
404
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
405
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
406
- r[k] = a[j];
407
- return r;
408
- }
409
- function __spreadArray(to, from, pack) {
410
- if (pack || arguments.length === 2)
411
- for (var i = 0, l = from.length, ar; i < l; i++) {
412
- if (ar || !(i in from)) {
413
- if (!ar)
414
- ar = Array.prototype.slice.call(from, 0, i);
415
- ar[i] = from[i];
416
- }
417
- }
418
- return to.concat(ar || Array.prototype.slice.call(from));
419
- }
420
- function __await(v) {
421
- return this instanceof __await ? (this.v = v, this) : new __await(v);
422
- }
423
- function __asyncGenerator(thisArg, _arguments, generator) {
424
- if (!Symbol.asyncIterator)
425
- throw new TypeError("Symbol.asyncIterator is not defined.");
426
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
427
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
428
- function verb(n) { if (g[n])
429
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
430
- function resume(n, v) { try {
431
- step(g[n](v));
432
- }
433
- catch (e) {
434
- settle(q[0][3], e);
435
- } }
436
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
437
- function fulfill(value) { resume("next", value); }
438
- function reject(value) { resume("throw", value); }
439
- function settle(f, v) { if (f(v), q.shift(), q.length)
440
- resume(q[0][0], q[0][1]); }
441
- }
442
- function __asyncDelegator(o) {
443
- var i, p;
444
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
445
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
446
- }
447
- function __asyncValues(o) {
448
- if (!Symbol.asyncIterator)
449
- throw new TypeError("Symbol.asyncIterator is not defined.");
450
- var m = o[Symbol.asyncIterator], i;
451
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
452
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
453
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
454
- }
455
- function __makeTemplateObject(cooked, raw) {
456
- if (Object.defineProperty) {
457
- Object.defineProperty(cooked, "raw", { value: raw });
458
- }
459
- else {
460
- cooked.raw = raw;
461
- }
462
- return cooked;
463
- }
464
- ;
465
- var __setModuleDefault = Object.create ? (function (o, v) {
466
- Object.defineProperty(o, "default", { enumerable: true, value: v });
467
- }) : function (o, v) {
468
- o["default"] = v;
469
- };
470
- function __importStar(mod) {
471
- if (mod && mod.__esModule)
472
- return mod;
473
- var result = {};
474
- if (mod != null)
475
- for (var k in mod)
476
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
477
- __createBinding(result, mod, k);
478
- __setModuleDefault(result, mod);
479
- return result;
480
- }
481
- function __importDefault(mod) {
482
- return (mod && mod.__esModule) ? mod : { default: mod };
483
- }
484
- function __classPrivateFieldGet(receiver, state, kind, f) {
485
- if (kind === "a" && !f)
486
- throw new TypeError("Private accessor was defined without a getter");
487
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
488
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
489
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
490
- }
491
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
492
- if (kind === "m")
493
- throw new TypeError("Private method is not writable");
494
- if (kind === "a" && !f)
495
- throw new TypeError("Private accessor was defined without a setter");
496
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
497
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
498
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
263
+ /*! *****************************************************************************
264
+ Copyright (c) Microsoft Corporation.
265
+
266
+ Permission to use, copy, modify, and/or distribute this software for any
267
+ purpose with or without fee is hereby granted.
268
+
269
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
270
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
271
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
272
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
273
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
274
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
275
+ PERFORMANCE OF THIS SOFTWARE.
276
+ ***************************************************************************** */
277
+ /* global Reflect, Promise */
278
+ var extendStatics = function (d, b) {
279
+ extendStatics = Object.setPrototypeOf ||
280
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
281
+ function (d, b) { for (var p in b)
282
+ if (Object.prototype.hasOwnProperty.call(b, p))
283
+ d[p] = b[p]; };
284
+ return extendStatics(d, b);
285
+ };
286
+ function __extends(d, b) {
287
+ if (typeof b !== "function" && b !== null)
288
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
289
+ extendStatics(d, b);
290
+ function __() { this.constructor = d; }
291
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
292
+ }
293
+ var __assign = function () {
294
+ __assign = Object.assign || function __assign(t) {
295
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
296
+ s = arguments[i];
297
+ for (var p in s)
298
+ if (Object.prototype.hasOwnProperty.call(s, p))
299
+ t[p] = s[p];
300
+ }
301
+ return t;
302
+ };
303
+ return __assign.apply(this, arguments);
304
+ };
305
+ function __rest(s, e) {
306
+ var t = {};
307
+ for (var p in s)
308
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
309
+ t[p] = s[p];
310
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
311
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
312
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
313
+ t[p[i]] = s[p[i]];
314
+ }
315
+ return t;
316
+ }
317
+ function __decorate(decorators, target, key, desc) {
318
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
319
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
320
+ r = Reflect.decorate(decorators, target, key, desc);
321
+ else
322
+ for (var i = decorators.length - 1; i >= 0; i--)
323
+ if (d = decorators[i])
324
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
325
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
326
+ }
327
+ function __param(paramIndex, decorator) {
328
+ return function (target, key) { decorator(target, key, paramIndex); };
329
+ }
330
+ function __metadata(metadataKey, metadataValue) {
331
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
332
+ return Reflect.metadata(metadataKey, metadataValue);
333
+ }
334
+ function __awaiter(thisArg, _arguments, P, generator) {
335
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
336
+ return new (P || (P = Promise))(function (resolve, reject) {
337
+ function fulfilled(value) { try {
338
+ step(generator.next(value));
339
+ }
340
+ catch (e) {
341
+ reject(e);
342
+ } }
343
+ function rejected(value) { try {
344
+ step(generator["throw"](value));
345
+ }
346
+ catch (e) {
347
+ reject(e);
348
+ } }
349
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
350
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
351
+ });
352
+ }
353
+ function __generator(thisArg, body) {
354
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
355
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
356
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
357
+ function verb(n) { return function (v) { return step([n, v]); }; }
358
+ function step(op) {
359
+ if (f)
360
+ throw new TypeError("Generator is already executing.");
361
+ while (_)
362
+ try {
363
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
364
+ return t;
365
+ if (y = 0, t)
366
+ op = [op[0] & 2, t.value];
367
+ switch (op[0]) {
368
+ case 0:
369
+ case 1:
370
+ t = op;
371
+ break;
372
+ case 4:
373
+ _.label++;
374
+ return { value: op[1], done: false };
375
+ case 5:
376
+ _.label++;
377
+ y = op[1];
378
+ op = [0];
379
+ continue;
380
+ case 7:
381
+ op = _.ops.pop();
382
+ _.trys.pop();
383
+ continue;
384
+ default:
385
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
386
+ _ = 0;
387
+ continue;
388
+ }
389
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
390
+ _.label = op[1];
391
+ break;
392
+ }
393
+ if (op[0] === 6 && _.label < t[1]) {
394
+ _.label = t[1];
395
+ t = op;
396
+ break;
397
+ }
398
+ if (t && _.label < t[2]) {
399
+ _.label = t[2];
400
+ _.ops.push(op);
401
+ break;
402
+ }
403
+ if (t[2])
404
+ _.ops.pop();
405
+ _.trys.pop();
406
+ continue;
407
+ }
408
+ op = body.call(thisArg, _);
409
+ }
410
+ catch (e) {
411
+ op = [6, e];
412
+ y = 0;
413
+ }
414
+ finally {
415
+ f = t = 0;
416
+ }
417
+ if (op[0] & 5)
418
+ throw op[1];
419
+ return { value: op[0] ? op[1] : void 0, done: true };
420
+ }
421
+ }
422
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
423
+ if (k2 === undefined)
424
+ k2 = k;
425
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
426
+ }) : (function (o, m, k, k2) {
427
+ if (k2 === undefined)
428
+ k2 = k;
429
+ o[k2] = m[k];
430
+ });
431
+ function __exportStar(m, o) {
432
+ for (var p in m)
433
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
434
+ __createBinding(o, m, p);
435
+ }
436
+ function __values(o) {
437
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
438
+ if (m)
439
+ return m.call(o);
440
+ if (o && typeof o.length === "number")
441
+ return {
442
+ next: function () {
443
+ if (o && i >= o.length)
444
+ o = void 0;
445
+ return { value: o && o[i++], done: !o };
446
+ }
447
+ };
448
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
449
+ }
450
+ function __read(o, n) {
451
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
452
+ if (!m)
453
+ return o;
454
+ var i = m.call(o), r, ar = [], e;
455
+ try {
456
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
457
+ ar.push(r.value);
458
+ }
459
+ catch (error) {
460
+ e = { error: error };
461
+ }
462
+ finally {
463
+ try {
464
+ if (r && !r.done && (m = i["return"]))
465
+ m.call(i);
466
+ }
467
+ finally {
468
+ if (e)
469
+ throw e.error;
470
+ }
471
+ }
472
+ return ar;
473
+ }
474
+ /** @deprecated */
475
+ function __spread() {
476
+ for (var ar = [], i = 0; i < arguments.length; i++)
477
+ ar = ar.concat(__read(arguments[i]));
478
+ return ar;
479
+ }
480
+ /** @deprecated */
481
+ function __spreadArrays() {
482
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
483
+ s += arguments[i].length;
484
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
485
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
486
+ r[k] = a[j];
487
+ return r;
488
+ }
489
+ function __spreadArray(to, from, pack) {
490
+ if (pack || arguments.length === 2)
491
+ for (var i = 0, l = from.length, ar; i < l; i++) {
492
+ if (ar || !(i in from)) {
493
+ if (!ar)
494
+ ar = Array.prototype.slice.call(from, 0, i);
495
+ ar[i] = from[i];
496
+ }
497
+ }
498
+ return to.concat(ar || Array.prototype.slice.call(from));
499
+ }
500
+ function __await(v) {
501
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
502
+ }
503
+ function __asyncGenerator(thisArg, _arguments, generator) {
504
+ if (!Symbol.asyncIterator)
505
+ throw new TypeError("Symbol.asyncIterator is not defined.");
506
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
507
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
508
+ function verb(n) { if (g[n])
509
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
510
+ function resume(n, v) { try {
511
+ step(g[n](v));
512
+ }
513
+ catch (e) {
514
+ settle(q[0][3], e);
515
+ } }
516
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
517
+ function fulfill(value) { resume("next", value); }
518
+ function reject(value) { resume("throw", value); }
519
+ function settle(f, v) { if (f(v), q.shift(), q.length)
520
+ resume(q[0][0], q[0][1]); }
521
+ }
522
+ function __asyncDelegator(o) {
523
+ var i, p;
524
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
525
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
526
+ }
527
+ function __asyncValues(o) {
528
+ if (!Symbol.asyncIterator)
529
+ throw new TypeError("Symbol.asyncIterator is not defined.");
530
+ var m = o[Symbol.asyncIterator], i;
531
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
532
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
533
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
534
+ }
535
+ function __makeTemplateObject(cooked, raw) {
536
+ if (Object.defineProperty) {
537
+ Object.defineProperty(cooked, "raw", { value: raw });
538
+ }
539
+ else {
540
+ cooked.raw = raw;
541
+ }
542
+ return cooked;
543
+ }
544
+ ;
545
+ var __setModuleDefault = Object.create ? (function (o, v) {
546
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
547
+ }) : function (o, v) {
548
+ o["default"] = v;
549
+ };
550
+ function __importStar(mod) {
551
+ if (mod && mod.__esModule)
552
+ return mod;
553
+ var result = {};
554
+ if (mod != null)
555
+ for (var k in mod)
556
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
557
+ __createBinding(result, mod, k);
558
+ __setModuleDefault(result, mod);
559
+ return result;
560
+ }
561
+ function __importDefault(mod) {
562
+ return (mod && mod.__esModule) ? mod : { default: mod };
563
+ }
564
+ function __classPrivateFieldGet(receiver, state, kind, f) {
565
+ if (kind === "a" && !f)
566
+ throw new TypeError("Private accessor was defined without a getter");
567
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
568
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
569
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
570
+ }
571
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
572
+ if (kind === "m")
573
+ throw new TypeError("Private method is not writable");
574
+ if (kind === "a" && !f)
575
+ throw new TypeError("Private accessor was defined without a setter");
576
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
577
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
578
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
499
579
  }
500
580
 
501
- var moment$1 = momentImported;
502
- moment$1.locale(localStorage.getItem('langKey') || '');
503
- var TaskListComponent = /** @class */ (function () {
504
- function TaskListComponent(taskService, router, logger, translateService) {
505
- this.taskService = taskService;
506
- this.router = router;
507
- this.logger = logger;
508
- this.translateService = translateService;
509
- this.tasks = {
510
- mine: new contract.TaskList(),
511
- open: new contract.TaskList(),
512
- all: new contract.TaskList(),
513
- };
514
- this.currentTaskType = 'mine';
515
- this.listTitle = null;
516
- this.listDescription = null;
517
- }
518
- TaskListComponent.prototype.paginationClicked = function (page, type) {
519
- this.tasks[type].page = page - 1;
520
- this.getTasks(type);
521
- };
522
- TaskListComponent.prototype.paginationSet = function () {
523
- this.tasks.mine.pagination.size =
524
- this.tasks.all.pagination.size =
525
- this.tasks.open.pagination.size =
526
- this.tasks[this.currentTaskType].pagination.size;
527
- this.getTasks(this.currentTaskType);
528
- };
529
- TaskListComponent.prototype.clearPagination = function (type) {
530
- this.tasks[type].page = 0;
531
- };
532
- TaskListComponent.prototype.tabChange = function (tab) {
533
- this.clearPagination(this.currentTaskType);
534
- switch (tab.nextId) {
535
- case 'ngb-tab-0':
536
- this.getTasks('mine');
537
- break;
538
- case 'ngb-tab-1':
539
- this.getTasks('open');
540
- break;
541
- case 'ngb-tab-2':
542
- this.getTasks('all');
543
- break;
544
- default:
545
- this.logger.fatal('Unreachable case');
546
- }
547
- };
548
- TaskListComponent.prototype.showTask = function (task) {
549
- this.router.navigate(['tasks', task.id]);
550
- };
551
- TaskListComponent.prototype.getTasks = function (type) {
552
- var _this = this;
553
- var params;
554
- this.translationSubscription = rxjs.combineLatest([
555
- this.translateService.stream("task-list." + type + ".title"),
556
- this.translateService.stream("task-list." + type + ".description"),
557
- ]).subscribe(function (_a) {
558
- var _b = __read(_a, 2), title = _b[0], description = _b[1];
559
- _this.listTitle = title;
560
- _this.listDescription = description;
561
- });
562
- switch (type) {
563
- case 'mine':
564
- params = {
565
- page: this.tasks.mine.page,
566
- size: this.tasks.mine.pagination.size,
567
- filter: 'mine',
568
- };
569
- this.currentTaskType = 'mine';
570
- break;
571
- case 'open':
572
- params = {
573
- page: this.tasks.open.page,
574
- size: this.tasks.open.pagination.size,
575
- filter: 'open',
576
- };
577
- this.currentTaskType = 'open';
578
- break;
579
- case 'all':
580
- params = { page: this.tasks.all.page, size: this.tasks.open.pagination.size, filter: 'all' };
581
- this.currentTaskType = 'all';
582
- break;
583
- default:
584
- this.logger.fatal('Unreachable case');
585
- }
586
- this.taskService.queryTasks(params).subscribe(function (results) {
587
- _this.tasks[type].pagination.collectionSize = results.headers.get('x-total-count');
588
- _this.tasks[type].tasks = results.body;
589
- _this.tasks[type].tasks.map(function (task) {
590
- task.created = moment$1(task.created).format('DD MMM YYYY HH:mm');
591
- if (task.due) {
592
- task.due = moment$1(task.due).format('DD MMM YYYY HH:mm');
593
- }
594
- });
595
- _this.tasks[type].fields = [
596
- {
597
- key: 'created',
598
- label: 'Created on',
599
- },
600
- {
601
- key: 'name',
602
- label: 'Name',
603
- },
604
- {
605
- key: 'valtimoAssignee.fullName',
606
- label: 'Assignee',
607
- },
608
- {
609
- key: 'due',
610
- label: 'Due date',
611
- },
612
- ];
613
- });
614
- };
615
- TaskListComponent.prototype.rowOpenTaskClick = function (task) {
616
- if (!task.endTime) {
617
- this.taskDetail.openTaskDetails(task);
618
- }
619
- else {
620
- return false;
621
- }
622
- };
623
- TaskListComponent.prototype.ngOnDestroy = function () {
624
- this.translationSubscription.unsubscribe();
625
- };
626
- return TaskListComponent;
627
- }());
628
- TaskListComponent.decorators = [
629
- { type: i0.Component, args: [{
630
- selector: 'valtimo-task-list',
631
- 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 >\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 <ngb-tabset [destroyOnHide]=\"false\" (tabChange)=\"tabChange($event)\">\n <ngb-tab id=\"ngb-tab-0\" [title]=\"'task-list.mine.title' | translate\"> </ngb-tab>\n <ngb-tab id=\"ngb-tab-1\" [title]=\"'task-list.open.title' | translate\"> </ngb-tab>\n <ngb-tab id=\"ngb-tab-2\" [title]=\"'task-list.all.title' | translate\"> </ngb-tab>\n </ngb-tabset>\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",
632
- encapsulation: i0.ViewEncapsulation.None,
633
- 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{margin:0;padding:0}.nav.nav-tabs{background-color:#f5f5f5}"]
634
- },] }
635
- ];
636
- TaskListComponent.ctorParameters = function () { return [
637
- { type: TaskService },
638
- { type: router.Router },
639
- { type: ngxLogger.NGXLogger },
640
- { type: core.TranslateService }
641
- ]; };
642
- TaskListComponent.propDecorators = {
643
- taskDetail: [{ type: i0.ViewChild, args: ['taskDetail',] }]
581
+ var moment$1 = momentImported;
582
+ moment$1.locale(localStorage.getItem('langKey') || '');
583
+ var TaskListComponent = /** @class */ (function () {
584
+ function TaskListComponent(taskService, router, logger, translateService) {
585
+ this.taskService = taskService;
586
+ this.router = router;
587
+ this.logger = logger;
588
+ this.translateService = translateService;
589
+ this.tasks = {
590
+ mine: new TaskList(),
591
+ open: new TaskList(),
592
+ all: new TaskList(),
593
+ };
594
+ this.currentTaskType = 'mine';
595
+ this.listTitle = null;
596
+ this.listDescription = null;
597
+ }
598
+ TaskListComponent.prototype.paginationClicked = function (page, type) {
599
+ this.tasks[type].page = page - 1;
600
+ this.getTasks(type);
601
+ };
602
+ TaskListComponent.prototype.paginationSet = function () {
603
+ this.tasks.mine.pagination.size =
604
+ this.tasks.all.pagination.size =
605
+ this.tasks.open.pagination.size =
606
+ this.tasks[this.currentTaskType].pagination.size;
607
+ this.getTasks(this.currentTaskType);
608
+ };
609
+ TaskListComponent.prototype.clearPagination = function (type) {
610
+ this.tasks[type].page = 0;
611
+ };
612
+ TaskListComponent.prototype.tabChange = function (tab) {
613
+ this.clearPagination(this.currentTaskType);
614
+ switch (tab.nextId) {
615
+ case 'ngb-tab-0':
616
+ this.getTasks('mine');
617
+ break;
618
+ case 'ngb-tab-1':
619
+ this.getTasks('open');
620
+ break;
621
+ case 'ngb-tab-2':
622
+ this.getTasks('all');
623
+ break;
624
+ default:
625
+ this.logger.fatal('Unreachable case');
626
+ }
627
+ };
628
+ TaskListComponent.prototype.showTask = function (task) {
629
+ this.router.navigate(['tasks', task.id]);
630
+ };
631
+ TaskListComponent.prototype.getTasks = function (type) {
632
+ var _this = this;
633
+ var params;
634
+ this.translationSubscription = rxjs.combineLatest([
635
+ this.translateService.stream("task-list." + type + ".title"),
636
+ this.translateService.stream("task-list." + type + ".description"),
637
+ ]).subscribe(function (_a) {
638
+ var _b = __read(_a, 2), title = _b[0], description = _b[1];
639
+ _this.listTitle = title;
640
+ _this.listDescription = description;
641
+ });
642
+ switch (type) {
643
+ case 'mine':
644
+ params = {
645
+ page: this.tasks.mine.page,
646
+ size: this.tasks.mine.pagination.size,
647
+ filter: 'mine',
648
+ };
649
+ this.currentTaskType = 'mine';
650
+ break;
651
+ case 'open':
652
+ params = {
653
+ page: this.tasks.open.page,
654
+ size: this.tasks.open.pagination.size,
655
+ filter: 'open',
656
+ };
657
+ this.currentTaskType = 'open';
658
+ break;
659
+ case 'all':
660
+ params = { page: this.tasks.all.page, size: this.tasks.open.pagination.size, filter: 'all' };
661
+ this.currentTaskType = 'all';
662
+ break;
663
+ default:
664
+ this.logger.fatal('Unreachable case');
665
+ }
666
+ this.taskService.queryTasks(params).subscribe(function (results) {
667
+ _this.tasks[type].pagination.collectionSize = results.headers.get('x-total-count');
668
+ _this.tasks[type].tasks = results.body;
669
+ _this.tasks[type].tasks.map(function (task) {
670
+ task.created = moment$1(task.created).format('DD MMM YYYY HH:mm');
671
+ if (task.due) {
672
+ task.due = moment$1(task.due).format('DD MMM YYYY HH:mm');
673
+ }
674
+ });
675
+ _this.tasks[type].fields = [
676
+ {
677
+ key: 'created',
678
+ label: 'Created on',
679
+ },
680
+ {
681
+ key: 'name',
682
+ label: 'Name',
683
+ },
684
+ {
685
+ key: 'valtimoAssignee.fullName',
686
+ label: 'Assignee',
687
+ },
688
+ {
689
+ key: 'due',
690
+ label: 'Due date',
691
+ },
692
+ ];
693
+ });
694
+ };
695
+ TaskListComponent.prototype.rowOpenTaskClick = function (task) {
696
+ if (!task.endTime) {
697
+ this.taskDetail.openTaskDetails(task);
698
+ }
699
+ else {
700
+ return false;
701
+ }
702
+ };
703
+ TaskListComponent.prototype.ngOnDestroy = function () {
704
+ this.translationSubscription.unsubscribe();
705
+ };
706
+ return TaskListComponent;
707
+ }());
708
+ TaskListComponent.decorators = [
709
+ { type: i0.Component, args: [{
710
+ selector: 'valtimo-task-list',
711
+ 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 >\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 <ngb-tabset [destroyOnHide]=\"false\" (tabChange)=\"tabChange($event)\">\n <ngb-tab id=\"ngb-tab-0\" [title]=\"'task-list.mine.title' | translate\"> </ngb-tab>\n <ngb-tab id=\"ngb-tab-1\" [title]=\"'task-list.open.title' | translate\"> </ngb-tab>\n <ngb-tab id=\"ngb-tab-2\" [title]=\"'task-list.all.title' | translate\"> </ngb-tab>\n </ngb-tabset>\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",
712
+ encapsulation: i0.ViewEncapsulation.None,
713
+ 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{margin:0;padding:0}.nav.nav-tabs{background-color:#f5f5f5}"]
714
+ },] }
715
+ ];
716
+ TaskListComponent.ctorParameters = function () { return [
717
+ { type: TaskService },
718
+ { type: router.Router },
719
+ { type: ngxLogger.NGXLogger },
720
+ { type: core.TranslateService }
721
+ ]; };
722
+ TaskListComponent.propDecorators = {
723
+ taskDetail: [{ type: i0.ViewChild, args: ['taskDetail',] }]
644
724
  };
645
725
 
646
- /*
647
- * Copyright 2015-2020 Ritense BV, the Netherlands.
648
- *
649
- * Licensed under EUPL, Version 1.2 (the "License");
650
- * you may not use this file except in compliance with the License.
651
- * You may obtain a copy of the License at
652
- *
653
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
654
- *
655
- * Unless required by applicable law or agreed to in writing, software
656
- * distributed under the License is distributed on an "AS IS" basis,
657
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
658
- * See the License for the specific language governing permissions and
659
- * limitations under the License.
660
- */
661
- var ɵ0 = { title: 'Tasks', roles: [contract.ROLE_USER] };
662
- var routes = [
663
- {
664
- path: 'tasks',
665
- component: TaskListComponent,
666
- canActivate: [security.AuthGuardService],
667
- data: ɵ0,
668
- },
669
- ];
670
- var TaskRoutingModule = /** @class */ (function () {
671
- function TaskRoutingModule() {
672
- }
673
- return TaskRoutingModule;
674
- }());
675
- TaskRoutingModule.decorators = [
676
- { type: i0.NgModule, args: [{
677
- declarations: [],
678
- imports: [common.CommonModule, router.RouterModule.forChild(routes)],
679
- exports: [router.RouterModule],
680
- },] }
726
+ /*
727
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
728
+ *
729
+ * Licensed under EUPL, Version 1.2 (the "License");
730
+ * you may not use this file except in compliance with the License.
731
+ * You may obtain a copy of the License at
732
+ *
733
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
734
+ *
735
+ * Unless required by applicable law or agreed to in writing, software
736
+ * distributed under the License is distributed on an "AS IS" basis,
737
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
738
+ * See the License for the specific language governing permissions and
739
+ * limitations under the License.
740
+ */
741
+ var ɵ0 = { title: 'Tasks', roles: [i2.ROLE_USER] };
742
+ var routes = [
743
+ {
744
+ path: 'tasks',
745
+ component: TaskListComponent,
746
+ canActivate: [security.AuthGuardService],
747
+ data: ɵ0,
748
+ },
749
+ ];
750
+ var TaskRoutingModule = /** @class */ (function () {
751
+ function TaskRoutingModule() {
752
+ }
753
+ return TaskRoutingModule;
754
+ }());
755
+ TaskRoutingModule.decorators = [
756
+ { type: i0.NgModule, args: [{
757
+ declarations: [],
758
+ imports: [common.CommonModule, router.RouterModule.forChild(routes)],
759
+ exports: [router.RouterModule],
760
+ },] }
681
761
  ];
682
762
 
683
- var AssignUserToTaskComponent = /** @class */ (function () {
684
- function AssignUserToTaskComponent(taskService) {
685
- this.taskService = taskService;
686
- this.assignmentOfTaskChanged = new i0.EventEmitter();
687
- this.candidateUsersForTask$ = new rxjs.BehaviorSubject(undefined);
688
- this.disabled$ = new rxjs.BehaviorSubject(true);
689
- this.assignedEmailOnServer$ = new rxjs.BehaviorSubject(null);
690
- this.userEmailToAssign = null;
691
- this.assignedUserFullName$ = new rxjs.BehaviorSubject(null);
692
- }
693
- AssignUserToTaskComponent.prototype.ngOnInit = function () {
694
- var _this = this;
695
- this.taskService.getCandidateUsers(this.taskId).subscribe(function (candidateUsers) {
696
- _this.candidateUsersForTask$.next(candidateUsers);
697
- if (_this.assigneeEmail) {
698
- _this.assignedEmailOnServer$.next(_this.assigneeEmail);
699
- _this.userEmailToAssign = _this.assigneeEmail;
700
- _this.assignedUserFullName$.next(_this.getAssignedUserName(candidateUsers, _this.assigneeEmail));
701
- }
702
- _this.enable();
703
- });
704
- };
705
- AssignUserToTaskComponent.prototype.ngOnChanges = function (changes) {
706
- var _this = this;
707
- var assigneeEmail = changes.assigneeEmail;
708
- if (assigneeEmail) {
709
- this.candidateUsersForTask$.pipe(operators.take(1)).subscribe(function (candidateUsers) {
710
- var currentUserEmail = assigneeEmail.currentValue;
711
- _this.assignedEmailOnServer$.next(currentUserEmail || null);
712
- _this.userEmailToAssign = currentUserEmail || null;
713
- _this.assignedUserFullName$.next(_this.getAssignedUserName(candidateUsers, currentUserEmail));
714
- });
715
- }
716
- else {
717
- this.clear();
718
- }
719
- };
720
- AssignUserToTaskComponent.prototype.assignTask = function (userEmail) {
721
- var _this = this;
722
- this.disable();
723
- rxjs.combineLatest([
724
- this.candidateUsersForTask$,
725
- this.taskService.assignTask(this.taskId, { assignee: userEmail }),
726
- ])
727
- .pipe(operators.take(1), operators.tap(function (_b) {
728
- var _c = __read(_b, 1), candidateUsers = _c[0];
729
- _this.userEmailToAssign = userEmail;
730
- _this.assignedEmailOnServer$.next(userEmail);
731
- _this.assignedUserFullName$.next(_this.getAssignedUserName(candidateUsers, userEmail));
732
- _this.emitChange();
733
- _this.enable();
734
- }))
735
- .subscribe();
736
- };
737
- AssignUserToTaskComponent.prototype.unassignTask = function () {
738
- var _this = this;
739
- this.disable();
740
- this.taskService
741
- .unassignTask(this.taskId)
742
- .pipe(operators.tap(function () {
743
- _this.clear();
744
- _this.emitChange();
745
- _this.enable();
746
- }))
747
- .subscribe();
748
- };
749
- AssignUserToTaskComponent.prototype.getAssignedUserName = function (users, userEmail) {
750
- if (users && userEmail) {
751
- var findUser = users.find(function (user) { return user.email === userEmail; });
752
- return findUser ? findUser.fullName : '';
753
- }
754
- return '';
755
- };
756
- AssignUserToTaskComponent.prototype.mapUsersForDropdown = function (users) {
757
- return (users &&
758
- users
759
- .map(function (user) { var _a; return (Object.assign(Object.assign({}, user), { lastName: ((_a = user.lastName) === null || _a === void 0 ? void 0 : _a.split(' ').splice(-1)[0]) || '' })); })
760
- .sort(function (a, b) { return a.lastName.localeCompare(b.lastName); })
761
- .map(function (user) { return ({ text: user.fullName, id: user.email }); }));
762
- };
763
- AssignUserToTaskComponent.prototype.clear = function () {
764
- this.assignedEmailOnServer$.next(null);
765
- this.userEmailToAssign = null;
766
- };
767
- AssignUserToTaskComponent.prototype.emitChange = function () {
768
- this.assignmentOfTaskChanged.emit();
769
- };
770
- AssignUserToTaskComponent.prototype.enable = function () {
771
- this.disabled$.next(false);
772
- };
773
- AssignUserToTaskComponent.prototype.disable = function () {
774
- this.disabled$.next(true);
775
- };
776
- return AssignUserToTaskComponent;
777
- }());
778
- AssignUserToTaskComponent.decorators = [
779
- { type: i0.Component, args: [{
780
- selector: 'valtimo-assign-user-to-task',
781
- template: "<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",
782
- styles: [".container-fluid{color:#959595}i{font-size:13px}"]
783
- },] }
784
- ];
785
- AssignUserToTaskComponent.ctorParameters = function () { return [
786
- { type: TaskService }
787
- ]; };
788
- AssignUserToTaskComponent.propDecorators = {
789
- taskId: [{ type: i0.Input }],
790
- assigneeEmail: [{ type: i0.Input }],
791
- assignmentOfTaskChanged: [{ type: i0.Output }]
763
+ var AssignUserToTaskComponent = /** @class */ (function () {
764
+ function AssignUserToTaskComponent(taskService) {
765
+ this.taskService = taskService;
766
+ this.assignmentOfTaskChanged = new i0.EventEmitter();
767
+ this.candidateUsersForTask$ = new rxjs.BehaviorSubject(undefined);
768
+ this.disabled$ = new rxjs.BehaviorSubject(true);
769
+ this.assignedEmailOnServer$ = new rxjs.BehaviorSubject(null);
770
+ this.userEmailToAssign = null;
771
+ this.assignedUserFullName$ = new rxjs.BehaviorSubject(null);
772
+ }
773
+ AssignUserToTaskComponent.prototype.ngOnInit = function () {
774
+ var _this = this;
775
+ this.taskService.getCandidateUsers(this.taskId).subscribe(function (candidateUsers) {
776
+ _this.candidateUsersForTask$.next(candidateUsers);
777
+ if (_this.assigneeEmail) {
778
+ _this.assignedEmailOnServer$.next(_this.assigneeEmail);
779
+ _this.userEmailToAssign = _this.assigneeEmail;
780
+ _this.assignedUserFullName$.next(_this.getAssignedUserName(candidateUsers, _this.assigneeEmail));
781
+ }
782
+ _this.enable();
783
+ });
784
+ };
785
+ AssignUserToTaskComponent.prototype.ngOnChanges = function (changes) {
786
+ var _this = this;
787
+ var assigneeEmail = changes.assigneeEmail;
788
+ if (assigneeEmail) {
789
+ this.candidateUsersForTask$.pipe(operators.take(1)).subscribe(function (candidateUsers) {
790
+ var currentUserEmail = assigneeEmail.currentValue;
791
+ _this.assignedEmailOnServer$.next(currentUserEmail || null);
792
+ _this.userEmailToAssign = currentUserEmail || null;
793
+ _this.assignedUserFullName$.next(_this.getAssignedUserName(candidateUsers, currentUserEmail));
794
+ });
795
+ }
796
+ else {
797
+ this.clear();
798
+ }
799
+ };
800
+ AssignUserToTaskComponent.prototype.assignTask = function (userEmail) {
801
+ var _this = this;
802
+ this.disable();
803
+ rxjs.combineLatest([
804
+ this.candidateUsersForTask$,
805
+ this.taskService.assignTask(this.taskId, { assignee: userEmail }),
806
+ ])
807
+ .pipe(operators.take(1), operators.tap(function (_b) {
808
+ var _c = __read(_b, 1), candidateUsers = _c[0];
809
+ _this.userEmailToAssign = userEmail;
810
+ _this.assignedEmailOnServer$.next(userEmail);
811
+ _this.assignedUserFullName$.next(_this.getAssignedUserName(candidateUsers, userEmail));
812
+ _this.emitChange();
813
+ _this.enable();
814
+ }))
815
+ .subscribe();
816
+ };
817
+ AssignUserToTaskComponent.prototype.unassignTask = function () {
818
+ var _this = this;
819
+ this.disable();
820
+ this.taskService
821
+ .unassignTask(this.taskId)
822
+ .pipe(operators.tap(function () {
823
+ _this.clear();
824
+ _this.emitChange();
825
+ _this.enable();
826
+ }))
827
+ .subscribe();
828
+ };
829
+ AssignUserToTaskComponent.prototype.getAssignedUserName = function (users, userEmail) {
830
+ if (users && userEmail) {
831
+ var findUser = users.find(function (user) { return user.email === userEmail; });
832
+ return findUser ? findUser.fullName : '';
833
+ }
834
+ return '';
835
+ };
836
+ AssignUserToTaskComponent.prototype.mapUsersForDropdown = function (users) {
837
+ return (users &&
838
+ users
839
+ .map(function (user) { var _a; return (Object.assign(Object.assign({}, user), { lastName: ((_a = user.lastName) === null || _a === void 0 ? void 0 : _a.split(' ').splice(-1)[0]) || '' })); })
840
+ .sort(function (a, b) { return a.lastName.localeCompare(b.lastName); })
841
+ .map(function (user) { return ({ text: user.fullName, id: user.email }); }));
842
+ };
843
+ AssignUserToTaskComponent.prototype.clear = function () {
844
+ this.assignedEmailOnServer$.next(null);
845
+ this.userEmailToAssign = null;
846
+ };
847
+ AssignUserToTaskComponent.prototype.emitChange = function () {
848
+ this.assignmentOfTaskChanged.emit();
849
+ };
850
+ AssignUserToTaskComponent.prototype.enable = function () {
851
+ this.disabled$.next(false);
852
+ };
853
+ AssignUserToTaskComponent.prototype.disable = function () {
854
+ this.disabled$.next(true);
855
+ };
856
+ return AssignUserToTaskComponent;
857
+ }());
858
+ AssignUserToTaskComponent.decorators = [
859
+ { type: i0.Component, args: [{
860
+ selector: 'valtimo-assign-user-to-task',
861
+ template: "<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",
862
+ styles: [".container-fluid{color:#959595}i{font-size:13px}"]
863
+ },] }
864
+ ];
865
+ AssignUserToTaskComponent.ctorParameters = function () { return [
866
+ { type: TaskService }
867
+ ]; };
868
+ AssignUserToTaskComponent.propDecorators = {
869
+ taskId: [{ type: i0.Input }],
870
+ assigneeEmail: [{ type: i0.Input }],
871
+ assignmentOfTaskChanged: [{ type: i0.Output }]
792
872
  };
793
873
 
794
- /*
795
- * Copyright 2015-2020 Ritense BV, the Netherlands.
796
- *
797
- * Licensed under EUPL, Version 1.2 (the "License");
798
- * you may not use this file except in compliance with the License.
799
- * You may obtain a copy of the License at
800
- *
801
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
802
- *
803
- * Unless required by applicable law or agreed to in writing, software
804
- * distributed under the License is distributed on an "AS IS" basis,
805
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
806
- * See the License for the specific language governing permissions and
807
- * limitations under the License.
808
- */
809
- var ɵ0$1 = contract.HttpLoaderFactory;
810
- var TaskModule = /** @class */ (function () {
811
- function TaskModule() {
812
- }
813
- return TaskModule;
814
- }());
815
- TaskModule.decorators = [
816
- { type: i0.NgModule, args: [{
817
- declarations: [TaskListComponent, TaskDetailModalComponent, AssignUserToTaskComponent],
818
- imports: [
819
- common.CommonModule,
820
- TaskRoutingModule,
821
- components.ListModule,
822
- components.PageHeaderModule,
823
- components.WidgetModule,
824
- components.SpinnerModule,
825
- components.SearchableDropdownSelectModule,
826
- components.CamundaFormModule,
827
- animations.BrowserAnimationsModule,
828
- forms.FormsModule,
829
- ngxToastr.ToastrModule.forRoot({
830
- positionClass: 'toast-bottom-full-width',
831
- preventDuplicates: true,
832
- }),
833
- core.TranslateModule.forRoot({
834
- loader: {
835
- provide: core.TranslateLoader,
836
- useFactory: ɵ0$1,
837
- deps: [i1.HttpClient],
838
- },
839
- }),
840
- ngBootstrap.NgbModule,
841
- components.FormIoModule,
842
- components.ModalModule,
843
- ],
844
- exports: [TaskListComponent, TaskDetailModalComponent, AssignUserToTaskComponent],
845
- },] }
874
+ /*
875
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
876
+ *
877
+ * Licensed under EUPL, Version 1.2 (the "License");
878
+ * you may not use this file except in compliance with the License.
879
+ * You may obtain a copy of the License at
880
+ *
881
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
882
+ *
883
+ * Unless required by applicable law or agreed to in writing, software
884
+ * distributed under the License is distributed on an "AS IS" basis,
885
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
886
+ * See the License for the specific language governing permissions and
887
+ * limitations under the License.
888
+ */
889
+ var ɵ0$1 = i2.HttpLoaderFactory;
890
+ var TaskModule = /** @class */ (function () {
891
+ function TaskModule() {
892
+ }
893
+ return TaskModule;
894
+ }());
895
+ TaskModule.decorators = [
896
+ { type: i0.NgModule, args: [{
897
+ declarations: [TaskListComponent, TaskDetailModalComponent, AssignUserToTaskComponent],
898
+ imports: [
899
+ common.CommonModule,
900
+ TaskRoutingModule,
901
+ components.ListModule,
902
+ components.PageHeaderModule,
903
+ components.WidgetModule,
904
+ components.SpinnerModule,
905
+ components.SearchableDropdownSelectModule,
906
+ components.CamundaFormModule,
907
+ animations.BrowserAnimationsModule,
908
+ forms.FormsModule,
909
+ ngxToastr.ToastrModule.forRoot({
910
+ positionClass: 'toast-bottom-full-width',
911
+ preventDuplicates: true,
912
+ }),
913
+ core.TranslateModule.forRoot({
914
+ loader: {
915
+ provide: core.TranslateLoader,
916
+ useFactory: ɵ0$1,
917
+ deps: [i1.HttpClient],
918
+ },
919
+ }),
920
+ ngBootstrap.NgbModule,
921
+ components.FormIoModule,
922
+ components.ModalModule,
923
+ ],
924
+ exports: [TaskListComponent, TaskDetailModalComponent, AssignUserToTaskComponent],
925
+ },] }
846
926
  ];
847
927
 
848
- /*
849
- * Copyright 2015-2020 Ritense BV, the Netherlands.
850
- *
851
- * Licensed under EUPL, Version 1.2 (the "License");
852
- * you may not use this file except in compliance with the License.
853
- * You may obtain a copy of the License at
854
- *
855
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
856
- *
857
- * Unless required by applicable law or agreed to in writing, software
858
- * distributed under the License is distributed on an "AS IS" basis,
859
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
860
- * See the License for the specific language governing permissions and
861
- * limitations under the License.
928
+ /*
929
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
930
+ *
931
+ * Licensed under EUPL, Version 1.2 (the "License");
932
+ * you may not use this file except in compliance with the License.
933
+ * You may obtain a copy of the License at
934
+ *
935
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
936
+ *
937
+ * Unless required by applicable law or agreed to in writing, software
938
+ * distributed under the License is distributed on an "AS IS" basis,
939
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
940
+ * See the License for the specific language governing permissions and
941
+ * limitations under the License.
862
942
  */
863
943
 
864
- /**
865
- * Generated bundle index. Do not edit.
944
+ /**
945
+ * Generated bundle index. Do not edit.
866
946
  */
867
947
 
868
948
  exports.TaskDetailModalComponent = TaskDetailModalComponent;
949
+ exports.TaskList = TaskList;
869
950
  exports.TaskListComponent = TaskListComponent;
870
951
  exports.TaskModule = TaskModule;
871
952
  exports.TaskService = TaskService;