@valtimo/dossier 4.23.0 → 5.0.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.
Files changed (92) hide show
  1. package/esm2020/lib/dossier-detail/dossier-detail.component.mjs +115 -0
  2. package/esm2020/lib/dossier-detail/tab/audit/audit.component.mjs +76 -0
  3. package/esm2020/lib/dossier-detail/tab/contact-moments/contact-moments.component.mjs +86 -0
  4. package/esm2020/lib/dossier-detail/tab/documents/documents.component.mjs +115 -0
  5. package/esm2020/lib/dossier-detail/tab/progress/progress.component.mjs +48 -0
  6. package/esm2020/lib/dossier-detail/tab/summary/summary.component.mjs +117 -0
  7. package/esm2020/lib/dossier-detail-tab-enum.mjs +24 -0
  8. package/esm2020/lib/dossier-list/dossier-list.component.mjs +218 -0
  9. package/esm2020/lib/dossier-process-start-modal/dossier-process-start-modal.component.mjs +125 -0
  10. package/esm2020/lib/dossier-routing.module.mjs +62 -0
  11. package/esm2020/lib/dossier-supporting-process-start-modal/dossier-supporting-process-start-modal.component.mjs +122 -0
  12. package/esm2020/lib/dossier-update/dossier-update.component.mjs +113 -0
  13. package/esm2020/lib/dossier.config.mjs +29 -0
  14. package/esm2020/lib/dossier.module.mjs +179 -0
  15. package/esm2020/lib/dossier.service.mjs +51 -0
  16. package/esm2020/lib/models/index.mjs +19 -0
  17. package/esm2020/lib/models/tabs.model.mjs +104 -0
  18. package/esm2020/lib/tab.service.mjs +45 -0
  19. package/esm2020/public_api.mjs +32 -0
  20. package/esm2020/valtimo-dossier.mjs +5 -0
  21. package/fesm2015/valtimo-dossier.mjs +1519 -0
  22. package/fesm2015/valtimo-dossier.mjs.map +1 -0
  23. package/fesm2020/valtimo-dossier.mjs +1535 -0
  24. package/fesm2020/valtimo-dossier.mjs.map +1 -0
  25. package/lib/dossier-detail/dossier-detail.component.d.ts +4 -0
  26. package/lib/dossier-detail/dossier-detail.component.d.ts.map +1 -0
  27. package/lib/dossier-detail/tab/audit/audit.component.d.ts +4 -0
  28. package/lib/dossier-detail/tab/audit/audit.component.d.ts.map +1 -0
  29. package/lib/dossier-detail/tab/contact-moments/contact-moments.component.d.ts +4 -0
  30. package/lib/dossier-detail/tab/contact-moments/contact-moments.component.d.ts.map +1 -0
  31. package/lib/dossier-detail/tab/documents/documents.component.d.ts +4 -0
  32. package/lib/dossier-detail/tab/documents/documents.component.d.ts.map +1 -0
  33. package/lib/dossier-detail/tab/progress/progress.component.d.ts +4 -0
  34. package/lib/dossier-detail/tab/progress/progress.component.d.ts.map +1 -0
  35. package/lib/dossier-detail/tab/summary/summary.component.d.ts +4 -0
  36. package/lib/dossier-detail/tab/summary/summary.component.d.ts.map +1 -0
  37. package/lib/dossier-detail-tab-enum.d.ts +1 -0
  38. package/lib/dossier-detail-tab-enum.d.ts.map +1 -0
  39. package/lib/dossier-list/dossier-list.component.d.ts +4 -0
  40. package/lib/dossier-list/dossier-list.component.d.ts.map +1 -0
  41. package/lib/dossier-process-start-modal/dossier-process-start-modal.component.d.ts +4 -0
  42. package/lib/dossier-process-start-modal/dossier-process-start-modal.component.d.ts.map +1 -0
  43. package/lib/dossier-routing.module.d.ts +7 -0
  44. package/lib/dossier-routing.module.d.ts.map +1 -0
  45. package/lib/dossier-supporting-process-start-modal/dossier-supporting-process-start-modal.component.d.ts +4 -0
  46. package/lib/dossier-supporting-process-start-modal/dossier-supporting-process-start-modal.component.d.ts.map +1 -0
  47. package/lib/dossier-update/dossier-update.component.d.ts +4 -0
  48. package/lib/dossier-update/dossier-update.component.d.ts.map +1 -0
  49. package/lib/dossier.config.d.ts +1 -0
  50. package/lib/dossier.config.d.ts.map +1 -0
  51. package/lib/dossier.module.d.ts +25 -0
  52. package/lib/dossier.module.d.ts.map +1 -0
  53. package/lib/dossier.service.d.ts +4 -0
  54. package/lib/dossier.service.d.ts.map +1 -0
  55. package/lib/models/index.d.ts +1 -0
  56. package/lib/models/index.d.ts.map +1 -0
  57. package/lib/models/tabs.model.d.ts +1 -0
  58. package/lib/models/tabs.model.d.ts.map +1 -0
  59. package/lib/tab.service.d.ts +4 -0
  60. package/lib/tab.service.d.ts.map +1 -0
  61. package/package.json +23 -11
  62. package/public_api.d.ts +1 -0
  63. package/public_api.d.ts.map +1 -0
  64. package/valtimo-dossier.d.ts +2 -4
  65. package/valtimo-dossier.d.ts.map +1 -0
  66. package/bundles/valtimo-dossier.umd.js +0 -1915
  67. package/bundles/valtimo-dossier.umd.js.map +0 -1
  68. package/bundles/valtimo-dossier.umd.min.js +0 -2
  69. package/bundles/valtimo-dossier.umd.min.js.map +0 -1
  70. package/esm2015/lib/dossier-detail/dossier-detail.component.js +0 -125
  71. package/esm2015/lib/dossier-detail/tab/audit/audit.component.js +0 -79
  72. package/esm2015/lib/dossier-detail/tab/contact-moments/contact-moments.component.js +0 -90
  73. package/esm2015/lib/dossier-detail/tab/documents/documents.component.js +0 -122
  74. package/esm2015/lib/dossier-detail/tab/progress/progress.component.js +0 -49
  75. package/esm2015/lib/dossier-detail/tab/summary/summary.component.js +0 -126
  76. package/esm2015/lib/dossier-detail-tab-enum.js +0 -24
  77. package/esm2015/lib/dossier-list/dossier-list.component.js +0 -216
  78. package/esm2015/lib/dossier-process-start-modal/dossier-process-start-modal.component.js +0 -130
  79. package/esm2015/lib/dossier-routing.module.js +0 -58
  80. package/esm2015/lib/dossier-supporting-process-start-modal/dossier-supporting-process-start-modal.component.js +0 -125
  81. package/esm2015/lib/dossier-update/dossier-update.component.js +0 -121
  82. package/esm2015/lib/dossier.config.js +0 -29
  83. package/esm2015/lib/dossier.module.js +0 -121
  84. package/esm2015/lib/dossier.service.js +0 -53
  85. package/esm2015/lib/models/index.js +0 -19
  86. package/esm2015/lib/models/tabs.model.js +0 -104
  87. package/esm2015/lib/tab.service.js +0 -44
  88. package/esm2015/public_api.js +0 -32
  89. package/esm2015/valtimo-dossier.js +0 -9
  90. package/fesm2015/valtimo-dossier.js +0 -1548
  91. package/fesm2015/valtimo-dossier.js.map +0 -1
  92. package/valtimo-dossier.metadata.json +0 -1
@@ -1,1548 +0,0 @@
1
- import { __rest } from 'tslib';
2
- import { Component, ViewEncapsulation, ViewChild, ɵɵdefineInjectable, ɵɵinject, Injectable, ElementRef, Renderer2, EventEmitter, Output, InjectionToken, Inject, ComponentFactoryResolver, ViewContainerRef, NgModule, ANALYZE_FOR_ENTRY_COMPONENTS } from '@angular/core';
3
- import { ActivatedRoute, Router, NavigationEnd, RouterModule } from '@angular/router';
4
- import { TranslateService, TranslateModule, TranslateLoader } from '@ngx-translate/core';
5
- import { DocumentService, DocumentSearchRequestImpl } from '@valtimo/document';
6
- import * as moment_ from 'moment';
7
- import { combineLatest, BehaviorSubject, noop } from 'rxjs';
8
- import { ProcessService, ProcessModule } from '@valtimo/process';
9
- import { FormioOptionsImpl, TimelineItemImpl, AlertService, ListModule, WidgetModule, BpmnJsDiagramModule, TimelineModule, CamundaFormModule, FilterSidebarModule, DataListModule, FormIoModule, ModalModule, SpinnerModule, UploaderModule, DropzoneModule } from '@valtimo/components';
10
- import { FormLinkService } from '@valtimo/form-link';
11
- import { NGXLogger } from 'ngx-logger';
12
- import { UserProviderService, AuthGuardService } from '@valtimo/security';
13
- import { ConfigService, ROLE_USER, HttpLoaderFactory, ConfigModule } from '@valtimo/config';
14
- import { Location, CommonModule } from '@angular/common';
15
- import { TaskService, TaskModule } from '@valtimo/task';
16
- import { FormService, FormModule } from '@valtimo/form';
17
- import { NgxSpinnerService } from 'ngx-spinner';
18
- import { ToastrService } from 'ngx-toastr';
19
- import { UploadProviderService, DownloadService } from '@valtimo/resource';
20
- import { switchMap, map, take } from 'rxjs/operators';
21
- import { ContactMomentService } from '@valtimo/contact-moment';
22
- import { NgbButtonsModule, NgbTooltipModule, NgbPaginationModule } from '@ng-bootstrap/ng-bootstrap';
23
- import { FormsModule } from '@angular/forms';
24
- import { HttpClient } from '@angular/common/http';
25
-
26
- /*
27
- * Copyright 2015-2020 Ritense BV, the Netherlands.
28
- *
29
- * Licensed under EUPL, Version 1.2 (the "License");
30
- * you may not use this file except in compliance with the License.
31
- * You may obtain a copy of the License at
32
- *
33
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
34
- *
35
- * Unless required by applicable law or agreed to in writing, software
36
- * distributed under the License is distributed on an "AS IS" basis,
37
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
38
- * See the License for the specific language governing permissions and
39
- * limitations under the License.
40
- */
41
- class TabLoaderImpl {
42
- constructor(tabs, componentFactoryResolver, viewContainerRef, translateService, router, location) {
43
- this._tabs = null;
44
- this._componentFactoryResolver = null;
45
- this._viewContainerRef = null;
46
- this._activeComponent = null;
47
- this._activeTab = null;
48
- this._translateService = null;
49
- this._tabs = tabs;
50
- this._componentFactoryResolver = componentFactoryResolver;
51
- this._viewContainerRef = viewContainerRef;
52
- this._translateService = translateService;
53
- this._router = router;
54
- this._location = location;
55
- }
56
- initial(tabName) {
57
- let initialTab;
58
- if (tabName) {
59
- initialTab = this._tabs.find(tab => tab.name === tabName);
60
- }
61
- else {
62
- initialTab = this._tabs[0] || null;
63
- }
64
- this.load(initialTab);
65
- }
66
- load(newTab) {
67
- if (newTab !== this._activeTab) {
68
- this._tabs.forEach(tab => tab.deactivate());
69
- this.replaceView(newTab);
70
- this.replaceUrlState(newTab);
71
- this.setActive(newTab);
72
- }
73
- }
74
- refreshView() {
75
- this.replaceView(this._activeTab);
76
- }
77
- replaceView(tab) {
78
- const componentFactory = this._componentFactoryResolver.resolveComponentFactory(tab.component);
79
- this._viewContainerRef.clear();
80
- if (this._activeTab !== null) {
81
- this._activeComponent.destroy();
82
- }
83
- this._activeComponent = this._viewContainerRef.createComponent(componentFactory);
84
- }
85
- replaceUrlState(tab) {
86
- const currentUrl = this._router.url;
87
- const urlParts = currentUrl.split('/');
88
- urlParts.splice(urlParts.length - 1, 1, tab.name);
89
- const newUrl = urlParts.join('/');
90
- this._location.replaceState(newUrl);
91
- }
92
- setActive(tab) {
93
- tab.activate();
94
- this._activeTab = tab;
95
- }
96
- get tabs() {
97
- return this._tabs;
98
- }
99
- translateTabName(tab) {
100
- return this._translateService.instant('dossier.tabs.' + tab.name);
101
- }
102
- }
103
- class TabImpl {
104
- constructor(name, sequence, component) {
105
- this._active = false;
106
- this._name = name;
107
- this._sequence = sequence;
108
- this._component = component;
109
- }
110
- get name() {
111
- return this._name;
112
- }
113
- get sequence() {
114
- return this._sequence;
115
- }
116
- get component() {
117
- return this._component;
118
- }
119
- activate() {
120
- this._active = true;
121
- }
122
- deactivate() {
123
- this._active = false;
124
- }
125
- isActive() {
126
- return this._active;
127
- }
128
- }
129
-
130
- /*
131
- *
132
- * * Copyright 2015-2020 Ritense BV, the Netherlands.
133
- * *
134
- * * Licensed under EUPL, Version 1.2 (the "License");
135
- * * you may not use this file except in compliance with the License.
136
- * * You may obtain a copy of the License at
137
- * *
138
- * * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
139
- * *
140
- * * Unless required by applicable law or agreed to in writing, software
141
- * * distributed under the License is distributed on an "AS IS" basis,
142
- * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
143
- * * See the License for the specific language governing permissions and
144
- * * limitations under the License.
145
- *
146
- */
147
-
148
- /*
149
- * Copyright 2015-2020 Ritense BV, the Netherlands.
150
- *
151
- * Licensed under EUPL, Version 1.2 (the "License");
152
- * you may not use this file except in compliance with the License.
153
- * You may obtain a copy of the License at
154
- *
155
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
156
- *
157
- * Unless required by applicable law or agreed to in writing, software
158
- * distributed under the License is distributed on an "AS IS" basis,
159
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
160
- * See the License for the specific language governing permissions and
161
- * limitations under the License.
162
- */
163
- var DefaultTabs;
164
- (function (DefaultTabs) {
165
- DefaultTabs["summary"] = "summary";
166
- DefaultTabs["progress"] = "progress";
167
- DefaultTabs["audit"] = "audit";
168
- DefaultTabs["documents"] = "documents";
169
- DefaultTabs["contactMoments"] = "contact-moments";
170
- })(DefaultTabs || (DefaultTabs = {}));
171
-
172
- /*
173
- * Copyright 2015-2020 Ritense BV, the Netherlands.
174
- *
175
- * Licensed under EUPL, Version 1.2 (the "License");
176
- * you may not use this file except in compliance with the License.
177
- * You may obtain a copy of the License at
178
- *
179
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
180
- *
181
- * Unless required by applicable law or agreed to in writing, software
182
- * distributed under the License is distributed on an "AS IS" basis,
183
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
184
- * See the License for the specific language governing permissions and
185
- * limitations under the License.
186
- */
187
- class DossierProcessStartModalComponent {
188
- constructor(route, router, processService, documentService, formLinkService, userProviderService, logger) {
189
- this.route = route;
190
- this.router = router;
191
- this.processService = processService;
192
- this.documentService = documentService;
193
- this.formLinkService = formLinkService;
194
- this.userProviderService = userProviderService;
195
- this.logger = logger;
196
- }
197
- ngOnInit() {
198
- this.isUserAdmin();
199
- }
200
- loadFormDefinition() {
201
- this.formDefinition = null;
202
- this.formLinkService
203
- .getStartEventFormDefinitionByProcessDefinitionKey(this.processDefinitionKey)
204
- .subscribe(formDefinition => {
205
- this.formAssociation = formDefinition.formAssociation;
206
- const className = this.formAssociation.formLink.className.split('.');
207
- const linkType = className[className.length - 1];
208
- switch (linkType) {
209
- case 'BpmnElementFormIdLink':
210
- this.formDefinition = formDefinition;
211
- this.modal.show();
212
- break;
213
- case 'BpmnElementUrlLink':
214
- const url = this.router.serializeUrl(this.router.createUrlTree([formDefinition.formAssociation.formLink.url]));
215
- window.open(url, '_blank');
216
- break;
217
- case 'BpmnElementAngularStateUrlLink':
218
- this.router.navigate([formDefinition.formAssociation.formLink.url]);
219
- break;
220
- default:
221
- this.logger.fatal('Unsupported class name');
222
- }
223
- }, errors => {
224
- this.modal.show();
225
- });
226
- }
227
- gotoFormLinkScreen() {
228
- this.modal.hide();
229
- this.router.navigate(['form-links'], { queryParams: { process: this.processDefinitionKey } });
230
- }
231
- get modalTitle() {
232
- return `Start - ${this.processName}`;
233
- }
234
- openModal(processDocumentDefinition) {
235
- this.processDefinitionKey = processDocumentDefinition.id.processDefinitionKey;
236
- this.documentDefinitionName = processDocumentDefinition.id.documentDefinitionId.name;
237
- this.processName = processDocumentDefinition.processName;
238
- this.options = new FormioOptionsImpl();
239
- this.options.disableAlerts = true;
240
- const formioBeforeSubmit = function (submission, callback) {
241
- callback(null, submission);
242
- };
243
- this.options.setHooks(formioBeforeSubmit);
244
- this.loadFormDefinition();
245
- }
246
- onSubmit(submission) {
247
- this.formioSubmission = submission;
248
- this.formLinkService
249
- .onSubmit(this.processDefinitionKey, this.formAssociation.formLink.id, submission.data)
250
- .subscribe((formSubmissionResult) => {
251
- this.modal.hide();
252
- this.router.navigate([
253
- 'dossiers',
254
- this.documentDefinitionName,
255
- 'document',
256
- formSubmissionResult.documentId,
257
- 'summary',
258
- ]);
259
- }, errors => {
260
- this.form.showErrors(errors);
261
- });
262
- }
263
- isUserAdmin() {
264
- this.userProviderService.getUserSubject().subscribe(userIdentity => {
265
- this.isAdmin = userIdentity.roles.includes('ROLE_ADMIN');
266
- }, error => {
267
- this.logger.error('Failed to retrieve user identity', error);
268
- this.isAdmin = false;
269
- });
270
- }
271
- }
272
- DossierProcessStartModalComponent.decorators = [
273
- { type: Component, args: [{
274
- selector: 'valtimo-dossier-process-start-modal',
275
- 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 #processStartModal elementId=\"processStartModal\" [title]=\"modalTitle\">\n <div body *ngIf=\"formDefinition\">\n <valtimo-form-io #form [form]=\"formDefinition\" [options]=\"options\" (submit)=\"onSubmit($event)\">\n </valtimo-form-io>\n </div>\n <div body *ngIf=\"!formDefinition && isAdmin\">\n <div\n class=\"bg-warning text-black mb-0 p-3 text-center\"\n [translate]=\"'formManagement.noFormDefinitionFoundAdmin'\"\n ></div>\n <div class=\"mb-0 mt-4 p-3 text-center\">\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 <div body *ngIf=\"!formDefinition && !isAdmin\">\n <div\n class=\"bg-warning text-black mb-0 p-3 text-center\"\n [translate]=\"'formManagement.noFormDefinitionFoundUser'\"\n ></div>\n </div>\n</valtimo-modal>\n",
276
- encapsulation: ViewEncapsulation.None,
277
- 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 */#processStartModal .formio-component-submit{text-align:right}"]
278
- },] }
279
- ];
280
- DossierProcessStartModalComponent.ctorParameters = () => [
281
- { type: ActivatedRoute },
282
- { type: Router },
283
- { type: ProcessService },
284
- { type: DocumentService },
285
- { type: FormLinkService },
286
- { type: UserProviderService },
287
- { type: NGXLogger }
288
- ];
289
- DossierProcessStartModalComponent.propDecorators = {
290
- form: [{ type: ViewChild, args: ['form', { static: false },] }],
291
- modal: [{ type: ViewChild, args: ['processStartModal', { static: false },] }]
292
- };
293
-
294
- /*
295
- * Copyright 2015-2020 Ritense BV, the Netherlands.
296
- *
297
- * Licensed under EUPL, Version 1.2 (the "License");
298
- * you may not use this file except in compliance with the License.
299
- * You may obtain a copy of the License at
300
- *
301
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
302
- *
303
- * Unless required by applicable law or agreed to in writing, software
304
- * distributed under the License is distributed on an "AS IS" basis,
305
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
306
- * See the License for the specific language governing permissions and
307
- * limitations under the License.
308
- */
309
- class DossierService {
310
- constructor(configService) {
311
- this.configService = configService;
312
- this.definitions = configService.config.definitions;
313
- }
314
- getImplementationEnvironmentDefinitions(name) {
315
- return this.definitions.dossiers.find(definition => definition.name === name);
316
- }
317
- getDefinitionColumns(definitionNameId) {
318
- const config = this.configService.config;
319
- const customDefinitionTable = config.customDefinitionTables[definitionNameId];
320
- return customDefinitionTable || config.defaultDefinitionTable;
321
- }
322
- getInitialSortState(columns) {
323
- const defaultColumn = columns.find(column => column.default);
324
- return {
325
- isSorting: false,
326
- state: {
327
- name: defaultColumn ? defaultColumn.propertyName : columns[0].propertyName,
328
- direction: 'DESC',
329
- },
330
- };
331
- }
332
- }
333
- DossierService.ɵprov = ɵɵdefineInjectable({ factory: function DossierService_Factory() { return new DossierService(ɵɵinject(ConfigService)); }, token: DossierService, providedIn: "root" });
334
- DossierService.decorators = [
335
- { type: Injectable, args: [{
336
- providedIn: 'root',
337
- },] }
338
- ];
339
- DossierService.ctorParameters = () => [
340
- { type: ConfigService }
341
- ];
342
-
343
- /*
344
- * Copyright 2015-2020 Ritense BV, the Netherlands.
345
- *
346
- * Licensed under EUPL, Version 1.2 (the "License");
347
- * you may not use this file except in compliance with the License.
348
- * You may obtain a copy of the License at
349
- *
350
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
351
- *
352
- * Unless required by applicable law or agreed to in writing, software
353
- * distributed under the License is distributed on an "AS IS" basis,
354
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
355
- * See the License for the specific language governing permissions and
356
- * limitations under the License.
357
- */
358
- const moment = moment_;
359
- moment.locale(localStorage.getItem('langKey') || '');
360
- class DossierListComponent {
361
- constructor(route, router, documentService, translateService, dossierService) {
362
- this.route = route;
363
- this.router = router;
364
- this.documentService = documentService;
365
- this.translateService = translateService;
366
- this.dossierService = dossierService;
367
- this.documentDefinitionName = '';
368
- this.showCreateDocument = false;
369
- this.items = [];
370
- this.fields = [];
371
- this.processDefinitionListFields = [];
372
- this.processDocumentDefinitions = [];
373
- this.pagination = {
374
- collectionSize: 0,
375
- page: 1,
376
- size: 10,
377
- maxPaginationItemSize: 5,
378
- sort: undefined,
379
- };
380
- this.selectedProcessDocumentDefinition = null;
381
- this.modalListenerAdded = false;
382
- }
383
- ngOnInit() {
384
- this.doInit();
385
- this.routeEvent(this.router);
386
- this.modalListenerAdded = false;
387
- }
388
- ngOnDestroy() {
389
- this.routerSubscription.unsubscribe();
390
- this.translationSubscription.unsubscribe();
391
- }
392
- paginationSet() {
393
- this.getData();
394
- }
395
- routeEvent(router) {
396
- this.routerSubscription = router.events.subscribe(e => {
397
- if (e instanceof NavigationEnd) {
398
- this.doInit();
399
- this.getData();
400
- }
401
- });
402
- }
403
- doInit() {
404
- const documentDefinitionName = this.route.snapshot.paramMap.get('documentDefinitionName') || '';
405
- const columns = this.dossierService.getDefinitionColumns(documentDefinitionName);
406
- this.documentDefinitionName = documentDefinitionName;
407
- this.initialSortState = this.dossierService.getInitialSortState(columns);
408
- this.openTranslationSubscription(columns);
409
- }
410
- openTranslationSubscription(columns) {
411
- this.translationSubscription = combineLatest(columns.map(column => this.translateService.stream(`fieldLabels.${column.translationKey}`))).subscribe(labels => {
412
- this.fields = columns.map((column, index) => (Object.assign({ key: column.propertyName, label: labels[index], sortable: column.sortable }, (column.viewType && { viewType: column.viewType }))));
413
- });
414
- }
415
- getData() {
416
- this.findDocumentDefinition(this.documentDefinitionName);
417
- if (this.hasCachedSearchRequest()) {
418
- const documentSearchRequest = this.getCachedSearch();
419
- this.globalSearchFilter = documentSearchRequest.globalSearchFilter;
420
- this.sequence = documentSearchRequest.sequence;
421
- this.createdBy = documentSearchRequest.createdBy;
422
- this.findDocuments(documentSearchRequest);
423
- }
424
- else {
425
- this.doSearch();
426
- }
427
- this.getAllAssociatedProcessDefinitions();
428
- }
429
- doSearch() {
430
- const documentSearchRequest = this.buildDocumentSearchRequest();
431
- this.findDocuments(documentSearchRequest);
432
- }
433
- findDocuments(documentSearchRequest) {
434
- return this.documentService.getDocuments(documentSearchRequest).subscribe(documents => {
435
- this.documents = documents;
436
- this.transformDocuments(this.documents.content);
437
- this.pagination.collectionSize = this.documents.totalElements;
438
- this.storeSearch(documentSearchRequest);
439
- });
440
- }
441
- getAllAssociatedProcessDefinitions() {
442
- this.documentService
443
- .findProcessDocumentDefinitions(this.documentDefinitionName)
444
- .subscribe(processDocumentDefinitions => {
445
- this.processDocumentDefinitions = processDocumentDefinitions.filter(processDocumentDefinition => processDocumentDefinition.canInitializeDocument);
446
- this.processDefinitionListFields = [
447
- {
448
- key: 'processName',
449
- label: 'Proces',
450
- },
451
- ];
452
- });
453
- }
454
- getCachedSearch() {
455
- const json = JSON.parse(this.getCachedDocumentSearchRequest());
456
- return new DocumentSearchRequestImpl(json.definitionName, this.pagination.page - 1, this.pagination.size, json.sequence, json.createdBy, json.globalSearchFilter, json.sort);
457
- }
458
- buildDocumentSearchRequest() {
459
- return new DocumentSearchRequestImpl(this.documentDefinitionName, this.pagination.page - 1, this.pagination.size, this.sequence, this.createdBy, this.globalSearchFilter, this.pagination.sort && this.pagination.sort.isSorting
460
- ? this.pagination.sort
461
- : this.initialSortState);
462
- }
463
- storeSearch(documentSearchRequest) {
464
- localStorage.setItem(this.getCachedKey(), JSON.stringify(documentSearchRequest));
465
- }
466
- getCachedDocumentSearchRequest() {
467
- return localStorage.getItem(this.getCachedKey()) || '';
468
- }
469
- hasCachedSearchRequest() {
470
- return localStorage.getItem(this.getCachedKey()) !== null;
471
- }
472
- getCachedKey() {
473
- return 'list-search-' + this.documentDefinitionName;
474
- }
475
- rowClick(document) {
476
- this.router.navigate([
477
- `/dossiers/${this.documentDefinitionName}/document/${document.id}/${DefaultTabs.summary}`,
478
- ]);
479
- }
480
- startDossier() {
481
- if (this.processDocumentDefinitions.length > 1) {
482
- $('#startProcess').modal('show');
483
- }
484
- else {
485
- this.selectedProcessDocumentDefinition = this.processDocumentDefinitions[0];
486
- this.showStartProcessModal();
487
- }
488
- }
489
- showStartProcessModal() {
490
- if (this.selectedProcessDocumentDefinition !== null) {
491
- this.processStart.openModal(this.selectedProcessDocumentDefinition);
492
- this.selectedProcessDocumentDefinition = null;
493
- }
494
- }
495
- selectProcess(processDocumentDefinition) {
496
- const modal = $('#startProcess');
497
- if (!this.modalListenerAdded) {
498
- modal.on('hidden.bs.modal', this.showStartProcessModal.bind(this));
499
- this.modalListenerAdded = true;
500
- }
501
- this.selectedProcessDocumentDefinition = processDocumentDefinition;
502
- modal.modal('hide');
503
- }
504
- findDocumentDefinition(documentDefinitionName) {
505
- this.documentService.getDocumentDefinition(documentDefinitionName).subscribe(definition => {
506
- this.schema = definition.schema;
507
- });
508
- }
509
- transformDocuments(documentsContent) {
510
- this.items = documentsContent.map(document => {
511
- const { content } = document, others = __rest(document, ["content"]);
512
- return Object.assign(Object.assign({}, content), others);
513
- });
514
- }
515
- paginationClicked(page) {
516
- this.pagination.page = page;
517
- this.doSearch();
518
- }
519
- sortChanged(sortState) {
520
- this.pagination.sort = sortState;
521
- this.doSearch();
522
- }
523
- getInitialSortState() {
524
- if (this.hasCachedSearchRequest()) {
525
- const cachedRequest = JSON.parse(this.getCachedDocumentSearchRequest());
526
- return cachedRequest.sort ? cachedRequest.sort : this.initialSortState;
527
- }
528
- return this.initialSortState;
529
- }
530
- }
531
- DossierListComponent.decorators = [
532
- { type: Component, args: [{
533
- selector: 'valtimo-dossier-list',
534
- 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 *ngTemplateOutlet=\"sidebar\"></ng-container>\n\n<div class=\"main-content pt-0\">\n <div class=\"container-fluid\">\n <div class=\"col-12 px-0 mb-5\">\n <div>\n <div class=\"text-right mt-m3px mb-3\">\n <button\n type=\"button\"\n class=\"btn btn-space btn-primary mr-0\"\n (click)=\"startDossier()\"\n [ngbTooltip]=\"processDocumentDefinitions.length === 0 ? 'No action' : null\"\n placement=\"bottom\"\n [disabled]=\"processDocumentDefinitions.length === 0\"\n >\n <i class=\"icon mdi mdi-plus mr-1\"></i>\n {{ 'Start Dossier' | translate }}\n </button>\n </div>\n\n <div\n class=\"modal fade\"\n id=\"startProcess\"\n tabindex=\"-1\"\n role=\"dialog\"\n aria-labelledby=\"startProcessLabel\"\n aria-hidden=\"true\"\n >\n <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h3 class=\"modal-title\" id=\"startProcessLabel\">\n {{ 'dashboard.startProcess.title' | translate }}\n </h3>\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n </div>\n <div class=\"modal-body\">\n <div class=\"table-responsive\">\n <table class=\"table m-0\">\n <tr\n *ngFor=\"let processDocumentDefinition of processDocumentDefinitions\"\n (click)=\"selectProcess(processDocumentDefinition)\"\n style=\"cursor: pointer\"\n >\n <td>{{ processDocumentDefinition.processName }}</td>\n </tr>\n </table>\n </div>\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">\n {{ 'cta.close' | translate }}\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n <valtimo-widget>\n <valtimo-list\n [items]=\"items\"\n [fields]=\"fields\"\n (rowClicked)=\"rowClick($event)\"\n [pagination]=\"pagination\"\n [viewMode]=\"true\"\n [header]=\"true\"\n paginationIdentifier=\"dossierList\"\n (paginationClicked)=\"paginationClicked($event)\"\n (paginationSet)=\"paginationSet()\"\n [initialSortState]=\"getInitialSortState()\"\n (sortChanged)=\"sortChanged($event)\"\n >\n <div header>\n <h3 class=\"list-header-title\">\n {{ schema?.title }}\n <sup class=\"ml-1 badge badge-pill badge-primary\">{{\n documents?.content.length || 0\n }}</sup>\n </h3>\n </div>\n </valtimo-list>\n </valtimo-widget>\n </div>\n </div>\n <valtimo-dossier-process-start-modal #processStartModal></valtimo-dossier-process-start-modal>\n</div>\n\n<ng-template #sidebar>\n <valtimo-filter-sidebar>\n <h4 class=\"title\">Search</h4>\n <div class=\"mb-4\">\n <input\n type=\"text\"\n class=\"form-control\"\n placeholder=\"{{ 'dossier.forms.globalSearchPlaceHolder' | translate }}\"\n [(ngModel)]=\"globalSearchFilter\"\n (blur)=\"doSearch()\"\n (keyup.enter)=\"doSearch()\"\n />\n </div>\n\n <div class=\"mb-4\">\n <input\n type=\"number\"\n class=\"form-control\"\n placeholder=\"{{ 'dossier.forms.referenceNumberPlaceHolder' | translate }}\"\n [(ngModel)]=\"sequence\"\n (blur)=\"doSearch()\"\n (keyup.enter)=\"doSearch()\"\n />\n </div>\n </valtimo-filter-sidebar>\n</ng-template>\n",
535
- styles: [""]
536
- },] }
537
- ];
538
- DossierListComponent.ctorParameters = () => [
539
- { type: ActivatedRoute },
540
- { type: Router },
541
- { type: DocumentService },
542
- { type: TranslateService },
543
- { type: DossierService }
544
- ];
545
- DossierListComponent.propDecorators = {
546
- processStart: [{ type: ViewChild, args: ['processStartModal',] }]
547
- };
548
-
549
- /*
550
- * Copyright 2015-2020 Ritense BV, the Netherlands.
551
- *
552
- * Licensed under EUPL, Version 1.2 (the "License");
553
- * you may not use this file except in compliance with the License.
554
- * You may obtain a copy of the License at
555
- *
556
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
557
- *
558
- * Unless required by applicable law or agreed to in writing, software
559
- * distributed under the License is distributed on an "AS IS" basis,
560
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
561
- * See the License for the specific language governing permissions and
562
- * limitations under the License.
563
- */
564
- const moment$1 = moment_;
565
- moment$1.locale(localStorage.getItem('langKey') || '');
566
- moment$1.defaultFormat = 'DD MMM YYYY HH:mm';
567
- class DossierDetailTabSummaryComponent {
568
- constructor(router, documentService, taskService, processService, el, renderer, route, formService, userProviderService) {
569
- this.router = router;
570
- this.documentService = documentService;
571
- this.taskService = taskService;
572
- this.processService = processService;
573
- this.el = el;
574
- this.renderer = renderer;
575
- this.route = route;
576
- this.formService = formService;
577
- this.userProviderService = userProviderService;
578
- this.processDocumentInstances = [];
579
- this.tasks = [];
580
- this.formDefinition = null;
581
- this.roles = [];
582
- this.snapshot = this.route.snapshot.paramMap;
583
- this.documentDefinitionName = this.snapshot.get('documentDefinitionName') || '';
584
- this.documentId = this.snapshot.get('documentId') || '';
585
- this.options = new FormioOptionsImpl();
586
- this.options.disableAlerts = true;
587
- }
588
- ngOnInit() {
589
- this.moment = moment$1;
590
- this.init();
591
- }
592
- init() {
593
- this.documentService.getDocument(this.documentId).subscribe(document => {
594
- this.document = document;
595
- });
596
- this.formService
597
- .getFormDefinitionByNamePreFilled(`${this.documentDefinitionName}.summary`, this.documentId)
598
- .subscribe(formDefinition => {
599
- this.formDefinition = formDefinition;
600
- });
601
- this.userProviderService.getUserSubject().subscribe(user => {
602
- this.roles = user.roles;
603
- this.tasks = [];
604
- this.loadProcessDocumentInstances(this.documentId);
605
- });
606
- }
607
- loadProcessDocumentInstances(documentId) {
608
- this.documentService
609
- .findProcessDocumentInstances(documentId)
610
- .subscribe(processDocumentInstances => {
611
- this.processDocumentInstances = processDocumentInstances;
612
- this.processDocumentInstances.forEach(instance => {
613
- this.loadProcessInstanceTasks(instance.id.processInstanceId);
614
- });
615
- });
616
- }
617
- loadProcessInstanceTasks(processInstanceId) {
618
- this.processService.getProcessInstanceTasks(processInstanceId).subscribe(tasks => {
619
- tasks.forEach(task => {
620
- task.createdUnix = this.moment(task.created).unix();
621
- task.created = this.moment(task.created).format('DD MMM YYYY HH:mm');
622
- task.isLocked = () => {
623
- let locked = true;
624
- for (const link of task.identityLinks) {
625
- if (link.type === 'candidate' && link.groupId) {
626
- if (this.roles.includes(link.groupId)) {
627
- locked = false;
628
- break;
629
- }
630
- }
631
- }
632
- return locked;
633
- };
634
- });
635
- this.tasks = this.tasks.concat(tasks);
636
- this.tasks.sort((t1, t2) => t2.createdUnix - t1.createdUnix);
637
- });
638
- }
639
- rowTaskClick(task) {
640
- this.taskDetail.openTaskDetails(task);
641
- }
642
- }
643
- DossierDetailTabSummaryComponent.decorators = [
644
- { type: Component, args: [{
645
- selector: 'valtimo-dossier-detail-tab-summary',
646
- 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=\"container-fluid\">\n <div class=\"row py-4\">\n <div class=\"col-sm-12 col-md-8 col-xl-9\">\n <div *ngIf=\"document\">\n <div *ngIf=\"formDefinition\" class=\"summaryForm\">\n <div class=\"mb-4\">\n <valtimo-form-io [form]=\"formDefinition\" [options]=\"options\"></valtimo-form-io>\n </div>\n </div>\n </div>\n </div>\n\n <!--Current user tasks right side-->\n <div class=\"col-sm-12 col-md-4 col-xl-3\">\n <h4 class=\"user-tasks-title\">User tasks</h4>\n <ng-container *ngIf=\"!tasks.length\">\n <valtimo-widget>\n <div class=\"p-3\">\n <img class=\"float-left\" src=\"assets/audit-2.png\" height=\"25\" />\n <span class=\"float-right\">{{ 'summary.userTasksDoneState' | translate }}</span>\n <div class=\"clearfix\"></div>\n </div>\n </valtimo-widget>\n </ng-container>\n <ng-container *ngFor=\"let task of tasks\">\n <valtimo-widget>\n <div\n class=\"p-3 clickable hoverable\"\n (click)=\"rowTaskClick(task)\"\n *ngIf=\"!task.isLocked()\"\n >\n <span class=\"float-right badge badge-pill badge-primary\">Open</span>\n <strong>{{ task.name }}</strong>\n <div>Created {{ task.created }}</div>\n </div>\n <div class=\"p-3 hoverable\" *ngIf=\"task.isLocked()\">\n <span\n class=\"float-right badge badge-pill badge-secondary bg-grey\"\n ngbTooltip=\"{{ 'summary.taskLocked' | translate }}\"\n >\n <i class=\"icon mdi mdi-lock\"></i>\n </span>\n <strong>{{ task.name }}</strong>\n <div>Created {{ task.created }}</div>\n </div>\n </valtimo-widget>\n </ng-container>\n <valtimo-task-detail-modal\n #taskDetail\n (formSubmit)=\"init()\"\n (assignmentOfTaskChanged)=\"init()\"\n ></valtimo-task-detail-modal>\n </div>\n </div>\n</div>\n",
647
- encapsulation: ViewEncapsulation.None,
648
- 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 */.hoverable:hover{background-color:#eee}.summaryForm .formio-component{margin-bottom:0!important}.summaryForm .formio-component div[ref=element] .form-control{background-color:#fff;border:0;font-size:13px;height:24px!important;margin:0;padding:0!important}.summaryForm .formio-field div[ref=element] .form-control{font-weight:400}.summaryForm .formio-value div[ref=element] .form-control{font-weight:700}.user-tasks-title{color:#000;font-weight:400;height:20px;margin-bottom:12px;margin-top:0}"]
649
- },] }
650
- ];
651
- DossierDetailTabSummaryComponent.ctorParameters = () => [
652
- { type: Router },
653
- { type: DocumentService },
654
- { type: TaskService },
655
- { type: ProcessService },
656
- { type: ElementRef },
657
- { type: Renderer2 },
658
- { type: ActivatedRoute },
659
- { type: FormService },
660
- { type: UserProviderService }
661
- ];
662
- DossierDetailTabSummaryComponent.propDecorators = {
663
- taskDetail: [{ type: ViewChild, args: ['taskDetail',] }]
664
- };
665
-
666
- /*
667
- * Copyright 2015-2020 Ritense BV, the Netherlands.
668
- *
669
- * Licensed under EUPL, Version 1.2 (the "License");
670
- * you may not use this file except in compliance with the License.
671
- * You may obtain a copy of the License at
672
- *
673
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
674
- *
675
- * Unless required by applicable law or agreed to in writing, software
676
- * distributed under the License is distributed on an "AS IS" basis,
677
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
678
- * See the License for the specific language governing permissions and
679
- * limitations under the License.
680
- */
681
- class DossierDetailTabProgressComponent {
682
- constructor(route, documentService) {
683
- this.route = route;
684
- this.documentService = documentService;
685
- const snapshot = this.route.snapshot.paramMap;
686
- this.documentId = snapshot.get('documentId') || '';
687
- }
688
- ngOnInit() {
689
- this.documentService
690
- .findProcessDocumentInstances(this.documentId)
691
- .subscribe(processDocumentInstances => {
692
- this.processDocumentInstances = processDocumentInstances;
693
- this.selectedProcessInstanceId = processDocumentInstances[0].id.processInstanceId;
694
- });
695
- }
696
- loadProcessInstance(processInstanceId) {
697
- this.selectedProcessInstanceId = processInstanceId;
698
- }
699
- }
700
- DossierDetailTabProgressComponent.decorators = [
701
- { type: Component, args: [{
702
- selector: 'valtimo-dossier-detail-tab-progress',
703
- 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=\"full-height-tab-content\" *ngIf=\"processDocumentInstances\">\n <div class=\"col-3\">\n <label><strong>Process</strong></label\n ><br />\n <select class=\"form-control\" (change)=\"loadProcessInstance($event.target.value)\">\n <option\n *ngFor=\"let processDocumentInstance of processDocumentInstances\"\n [value]=\"processDocumentInstance.id.processInstanceId\"\n [selected]=\"selectedProcessInstanceId === processDocumentInstance.id.processInstanceId\"\n >\n {{ processDocumentInstance.processName }}\n </option>\n </select>\n </div>\n <valtimo-process-diagram\n [processInstanceId]=\"selectedProcessInstanceId\"\n ></valtimo-process-diagram>\n</div>\n",
704
- styles: [".full-height-tab-content{height:calc(100vh - 380px);width:100%}"]
705
- },] }
706
- ];
707
- DossierDetailTabProgressComponent.ctorParameters = () => [
708
- { type: ActivatedRoute },
709
- { type: DocumentService }
710
- ];
711
-
712
- /*
713
- * Copyright 2015-2020 Ritense BV, the Netherlands.
714
- *
715
- * Licensed under EUPL, Version 1.2 (the "License");
716
- * you may not use this file except in compliance with the License.
717
- * You may obtain a copy of the License at
718
- *
719
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
720
- *
721
- * Unless required by applicable law or agreed to in writing, software
722
- * distributed under the License is distributed on an "AS IS" basis,
723
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
724
- * See the License for the specific language governing permissions and
725
- * limitations under the License.
726
- */
727
- const moment$2 = moment_;
728
- moment$2.locale(localStorage.getItem('langKey') || '');
729
- moment$2.defaultFormat = 'DD MMM YYYY HH:mm';
730
- class DossierDetailTabAuditComponent {
731
- constructor(route, documentService, spinnerService) {
732
- this.route = route;
733
- this.documentService = documentService;
734
- this.spinnerService = spinnerService;
735
- this.paginationClicked = new EventEmitter();
736
- this.defaultAuditPage = 0;
737
- this.spinnerService.show('auditSpinner');
738
- const snapshot = this.route.snapshot.paramMap;
739
- this.documentId = snapshot.get('documentId') || '';
740
- }
741
- static getTranslationKey(auditEvent) {
742
- const classNameArray = auditEvent.className.split('.');
743
- const eventName = classNameArray[classNameArray.length - 1];
744
- return 'events.' + eventName;
745
- }
746
- ngOnInit() {
747
- this.loadAuditPage(this.defaultAuditPage);
748
- }
749
- loadAuditPage(pageNumber) {
750
- this.documentService.getAuditLog(this.documentId, pageNumber).subscribe(page => {
751
- const timelineItems = [];
752
- page.content.forEach(auditRecord => {
753
- const occurredOn = moment$2(auditRecord.metaData.occurredOn);
754
- const fromNow = occurredOn.fromNow();
755
- timelineItems.push(new TimelineItemImpl(occurredOn.format('DD MMM YYYY'), occurredOn.format('HH:mm'), auditRecord.metaData.user, fromNow, DossierDetailTabAuditComponent.getTranslationKey(auditRecord.auditEvent), auditRecord.auditEvent));
756
- });
757
- this.timelineItems = timelineItems;
758
- this.spinnerService.hide('auditSpinner');
759
- this.pagination = page;
760
- this.pagination.number += 1;
761
- });
762
- }
763
- onChangePagination(page) {
764
- this.paginationClicked.emit(page);
765
- this.currentAuditPage = page - 1;
766
- this.loadAuditPage(this.currentAuditPage);
767
- }
768
- }
769
- DossierDetailTabAuditComponent.decorators = [
770
- { type: Component, args: [{
771
- selector: 'valtimo-dossier-detail-tab-audit',
772
- 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 *ngIf=\"timelineItems\">\n <valtimo-timeline [items]=\"timelineItems\"></valtimo-timeline>\n</div>\n<valtimo-spinner\n [useBootstrapSpinner]=\"false\"\n name=\"auditSpinner\"\n bdColor=\"rgba(125, 125, 125, 0.35)\"\n color=\"#264251\"\n type=\"square-jelly-box\"\n>\n</valtimo-spinner>\n<div\n class=\"pagination-holder audit-pagination bg-light px-4 pt-4 pb-2 overflow-auto row mr-0 ml-0\"\n *ngIf=\"pagination && pagination.totalElements > pagination.size\"\n>\n <div class=\"float-left page-count col-4\">\n <strong>{{\n 'list.currentPage' | translate: {current: pagination.number, total: pagination.totalPages}\n }}</strong>\n <br />\n {{\n pagination.totalElements === 1\n ? ('list.showingResult' | translate: {number: pagination.content.length})\n : ('list.showingResults'\n | translate: {number: pagination.content.length, total: pagination.totalElements})\n }}\n </div>\n <div class=\"col-8\">\n <ngb-pagination\n *ngIf=\"pagination.totalElements > pagination.size\"\n class=\"float-right\"\n [collectionSize]=\"pagination.totalElements\"\n [(page)]=\"pagination.number\"\n [pageSize]=\"pagination.size\"\n [maxSize]=\"pagination.size\"\n [rotate]=\"true\"\n (pageChange)=\"onChangePagination(pagination.number)\"\n ></ngb-pagination>\n </div>\n</div>\n",
773
- styles: [".audit-pagination{border-top:1px solid #dee2e6;margin:0 -1.923rem -1.923rem!important}"]
774
- },] }
775
- ];
776
- DossierDetailTabAuditComponent.ctorParameters = () => [
777
- { type: ActivatedRoute },
778
- { type: DocumentService },
779
- { type: NgxSpinnerService }
780
- ];
781
- DossierDetailTabAuditComponent.propDecorators = {
782
- paginationClicked: [{ type: Output }]
783
- };
784
-
785
- /*
786
- * Copyright 2015-2020 Ritense BV, the Netherlands.
787
- *
788
- * Licensed under EUPL, Version 1.2 (the "License");
789
- * you may not use this file except in compliance with the License.
790
- * You may obtain a copy of the License at
791
- *
792
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
793
- *
794
- * Unless required by applicable law or agreed to in writing, software
795
- * distributed under the License is distributed on an "AS IS" basis,
796
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
797
- * See the License for the specific language governing permissions and
798
- * limitations under the License.
799
- */
800
- class DossierDetailTabDocumentsComponent {
801
- constructor(route, documentService, toastrService, uploadProviderService, downloadService, translateService, configService) {
802
- var _a, _b;
803
- this.route = route;
804
- this.documentService = documentService;
805
- this.toastrService = toastrService;
806
- this.uploadProviderService = uploadProviderService;
807
- this.downloadService = downloadService;
808
- this.translateService = translateService;
809
- this.configService = configService;
810
- this.maxFileSize = ((_b = (_a = this.configService) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.caseFileSizeUploadLimitMB) || 5;
811
- this.refetch$ = new BehaviorSubject(null);
812
- this.relatedFiles$ = this.refetch$.pipe(switchMap(() => combineLatest([
813
- this.documentService.getDocument(this.documentId),
814
- this.translateService.stream('key'),
815
- ])), map(([document]) => {
816
- const relatedFiles = (document === null || document === void 0 ? void 0 : document.relatedFiles) || [];
817
- const translatedFiles = relatedFiles.map(file => {
818
- return Object.assign(Object.assign({}, file), { createdBy: file.createdBy || this.translateService.instant('list.automaticallyGenerated') });
819
- });
820
- return translatedFiles || [];
821
- }));
822
- this.fields = [
823
- { key: 'fileName', label: 'File name' },
824
- { key: 'sizeInBytes', label: 'Size in bytes' },
825
- { key: 'createdOn', label: 'Created on', viewType: 'date' },
826
- { key: 'createdBy', label: 'Created by' },
827
- ];
828
- this.actions = [
829
- {
830
- columnName: '',
831
- iconClass: 'mdi mdi-open-in-new',
832
- callback: this.downloadDocument.bind(this),
833
- },
834
- {
835
- columnName: '',
836
- iconClass: 'mdi mdi-delete',
837
- callback: this.removeRelatedFile.bind(this),
838
- },
839
- ];
840
- this.uploading$ = new BehaviorSubject(false);
841
- const snapshot = this.route.snapshot.paramMap;
842
- this.documentId = snapshot.get('documentId') || '';
843
- this.documentDefinitionName = snapshot.get('documentDefinitionName') || '';
844
- }
845
- ngOnInit() {
846
- this.refetchDocuments();
847
- }
848
- fileSelected(file) {
849
- this.uploading$.next(true);
850
- this.uploadProviderService
851
- .uploadFile(file, this.documentDefinitionName)
852
- .pipe(switchMap(resourceFile => this.documentService.assignResource(this.documentId, resourceFile.data.resourceId)))
853
- .subscribe(() => {
854
- this.toastrService.success('Successfully uploaded document to dossier');
855
- this.refetchDocuments();
856
- this.uploading$.next(false);
857
- }, () => {
858
- this.toastrService.error('Failed to upload document to dossier');
859
- this.uploading$.next(false);
860
- });
861
- }
862
- downloadDocument(relatedFile) {
863
- this.uploadProviderService
864
- .getResource(relatedFile.fileId)
865
- .subscribe((resource) => {
866
- this.downloadService.downloadFile(resource.url, resource.resource.name);
867
- });
868
- }
869
- removeRelatedFile(relatedFile) {
870
- this.documentService.removeResource(this.documentId, relatedFile.fileId).subscribe(() => {
871
- this.toastrService.success('Successfully removed document from dossier');
872
- this.refetchDocuments();
873
- }, () => {
874
- this.toastrService.error('Failed to remove document from dossier');
875
- });
876
- }
877
- refetchDocuments() {
878
- this.refetch$.next(null);
879
- }
880
- }
881
- DossierDetailTabDocumentsComponent.decorators = [
882
- { type: Component, args: [{
883
- selector: 'valtimo-dossier-detail-tab-documents',
884
- 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-dropzone\n (fileSelected)=\"fileSelected($event)\"\n [acceptedFiles]=\"null\"\n [hideFilePreview]=\"true\"\n [hideTitle]=\"true\"\n [maxFileSize]=\"maxFileSize\"\n [showMaxFileSize]=\"true\"\n [camera]=\"false\"\n [uploading]=\"uploading$ | async\"\n></valtimo-dropzone>\n\n<valtimo-widget>\n <valtimo-list\n [fields]=\"fields\"\n [items]=\"relatedFiles$ | async\"\n [header]=\"true\"\n [isSearchable]=\"true\"\n [viewMode]=\"true\"\n [actions]=\"actions\"\n >\n <div header>\n <h3 class=\"list-header-title\">{{ 'Related documents' | translate }}</h3>\n <h5 class=\"list-header-description\">\n {{ 'Overview of all documents in this dossier' | translate }}\n </h5>\n </div>\n </valtimo-list>\n</valtimo-widget>\n",
885
- styles: [""]
886
- },] }
887
- ];
888
- DossierDetailTabDocumentsComponent.ctorParameters = () => [
889
- { type: ActivatedRoute },
890
- { type: DocumentService },
891
- { type: ToastrService },
892
- { type: UploadProviderService },
893
- { type: DownloadService },
894
- { type: TranslateService },
895
- { type: ConfigService }
896
- ];
897
-
898
- /*
899
- * Copyright 2015-2020 Ritense BV, the Netherlands.
900
- *
901
- * Licensed under EUPL, Version 1.2 (the "License");
902
- * you may not use this file except in compliance with the License.
903
- * You may obtain a copy of the License at
904
- *
905
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
906
- *
907
- * Unless required by applicable law or agreed to in writing, software
908
- * distributed under the License is distributed on an "AS IS" basis,
909
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
910
- * See the License for the specific language governing permissions and
911
- * limitations under the License.
912
- */
913
- const TAB_MAP = new InjectionToken('TabMap');
914
- const DEFAULT_TABS = new Map([
915
- [DefaultTabs.summary, DossierDetailTabSummaryComponent],
916
- [DefaultTabs.progress, DossierDetailTabProgressComponent],
917
- [DefaultTabs.audit, DossierDetailTabAuditComponent],
918
- [DefaultTabs.documents, DossierDetailTabDocumentsComponent],
919
- ]);
920
-
921
- /*
922
- * Copyright 2015-2020 Ritense BV, the Netherlands.
923
- *
924
- * Licensed under EUPL, Version 1.2 (the "License");
925
- * you may not use this file except in compliance with the License.
926
- * You may obtain a copy of the License at
927
- *
928
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
929
- *
930
- * Unless required by applicable law or agreed to in writing, software
931
- * distributed under the License is distributed on an "AS IS" basis,
932
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
933
- * See the License for the specific language governing permissions and
934
- * limitations under the License.
935
- */
936
- class TabService {
937
- constructor(tabMap = DEFAULT_TABS) {
938
- this.tabs = [];
939
- this.tabMap = tabMap;
940
- let i = 0;
941
- this.tabMap.forEach((component, name, map) => {
942
- this.tabs.push(new TabImpl(name, i, component));
943
- i++;
944
- });
945
- }
946
- getTabs() {
947
- return this.tabs;
948
- }
949
- }
950
- TabService.ɵprov = ɵɵdefineInjectable({ factory: function TabService_Factory() { return new TabService(ɵɵinject(TAB_MAP)); }, token: TabService, providedIn: "root" });
951
- TabService.decorators = [
952
- { type: Injectable, args: [{
953
- providedIn: 'root',
954
- },] }
955
- ];
956
- TabService.ctorParameters = () => [
957
- { type: Map, decorators: [{ type: Inject, args: [TAB_MAP,] }] }
958
- ];
959
-
960
- /*
961
- * Copyright 2015-2020 Ritense BV, the Netherlands.
962
- *
963
- * Licensed under EUPL, Version 1.2 (the "License");
964
- * you may not use this file except in compliance with the License.
965
- * You may obtain a copy of the License at
966
- *
967
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
968
- *
969
- * Unless required by applicable law or agreed to in writing, software
970
- * distributed under the License is distributed on an "AS IS" basis,
971
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
972
- * See the License for the specific language governing permissions and
973
- * limitations under the License.
974
- */
975
- class DossierSupportingProcessStartModalComponent {
976
- constructor(route, router, processService, documentService, formLinkService, logger) {
977
- this.route = route;
978
- this.router = router;
979
- this.processService = processService;
980
- this.documentService = documentService;
981
- this.formLinkService = formLinkService;
982
- this.logger = logger;
983
- this.formSubmit = new EventEmitter();
984
- }
985
- loadFormDefinition() {
986
- this.formDefinition = null;
987
- this.formLinkService
988
- .getStartEventFormDefinitionByProcessDefinitionKey(this.processDefinitionKey)
989
- .subscribe(formDefinition => {
990
- this.formAssociation = formDefinition.formAssociation;
991
- const className = this.formAssociation.formLink.className.split('.');
992
- const linkType = className[className.length - 1];
993
- switch (linkType) {
994
- case 'BpmnElementFormIdLink':
995
- this.formDefinition = formDefinition;
996
- this.documentService.getDocument(this.documentId).subscribe(document => {
997
- this.submission = {
998
- data: document.content,
999
- };
1000
- }, () => noop());
1001
- this.modal.show();
1002
- break;
1003
- case 'BpmnElementUrlLink':
1004
- const url = this.router.serializeUrl(this.router.createUrlTree([formDefinition.formAssociation.formLink.url]));
1005
- window.open(url, '_blank');
1006
- break;
1007
- case 'BpmnElementAngularStateUrlLink':
1008
- this.route.params.pipe(take(1)).subscribe(params => {
1009
- const documentId = params === null || params === void 0 ? void 0 : params.documentId;
1010
- this.router.navigate([formDefinition.formAssociation.formLink.url], {
1011
- state: Object.assign({}, (documentId && { documentId })),
1012
- });
1013
- });
1014
- break;
1015
- default:
1016
- this.logger.fatal('Unsupported class name');
1017
- }
1018
- }, errors => {
1019
- this.modal.show();
1020
- });
1021
- }
1022
- get modalTitle() {
1023
- return `Start - ${this.processName}`;
1024
- }
1025
- openModal(processDocumentDefinition, documentId) {
1026
- this.documentId = documentId;
1027
- this.documentDefinitionName = processDocumentDefinition.id.documentDefinitionId.name;
1028
- this.processDefinitionKey = processDocumentDefinition.id.processDefinitionKey;
1029
- this.processName = processDocumentDefinition.processName;
1030
- this.options = new FormioOptionsImpl();
1031
- this.options.disableAlerts = true;
1032
- const formioBeforeSubmit = function (submission, callback) {
1033
- callback(null, submission);
1034
- };
1035
- this.options.setHooks(formioBeforeSubmit);
1036
- this.loadFormDefinition();
1037
- }
1038
- onSubmit(submission) {
1039
- this.formioSubmission = submission;
1040
- this.formLinkService
1041
- .onSubmit(this.processDefinitionKey, this.formAssociation.formLink.id, submission.data, this.documentId)
1042
- .subscribe((formSubmissionResult) => {
1043
- this.modal.hide();
1044
- this.formSubmit.emit();
1045
- }, errors => {
1046
- this.form.showErrors(errors);
1047
- });
1048
- }
1049
- gotoFormLinkScreen() {
1050
- this.modal.hide();
1051
- this.router.navigate(['form-links'], { queryParams: { process: this.processDefinitionKey } });
1052
- }
1053
- }
1054
- DossierSupportingProcessStartModalComponent.decorators = [
1055
- { type: Component, args: [{
1056
- selector: 'valtimo-dossier-supporting-process-start-modal',
1057
- 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 #supportingProcessStartModal\n elementId=\"supportingProcessStartModal\"\n [title]=\"modalTitle\"\n>\n <div body *ngIf=\"formDefinition\">\n <valtimo-form-io\n #form\n [submission]=\"submission\"\n [form]=\"formDefinition\"\n [options]=\"options\"\n (submit)=\"onSubmit($event)\"\n >\n </valtimo-form-io>\n </div>\n <div body *ngIf=\"!formDefinition\">\n <div\n class=\"bg-warning text-black mb-0 p-3 text-center\"\n [translate]=\"'formManagement.noFormDefinitionFound'\"\n ></div>\n <div class=\"mb-0 mt-4 p-3 text-center\">\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",
1058
- encapsulation: ViewEncapsulation.None,
1059
- 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 */#supportingProcessStartModal .formio-component-submit{text-align:right}"]
1060
- },] }
1061
- ];
1062
- DossierSupportingProcessStartModalComponent.ctorParameters = () => [
1063
- { type: ActivatedRoute },
1064
- { type: Router },
1065
- { type: ProcessService },
1066
- { type: DocumentService },
1067
- { type: FormLinkService },
1068
- { type: NGXLogger }
1069
- ];
1070
- DossierSupportingProcessStartModalComponent.propDecorators = {
1071
- form: [{ type: ViewChild, args: ['form', { static: false },] }],
1072
- modal: [{ type: ViewChild, args: ['supportingProcessStartModal', { static: false },] }],
1073
- formSubmit: [{ type: Output }]
1074
- };
1075
-
1076
- /*
1077
- * Copyright 2015-2020 Ritense BV, the Netherlands.
1078
- *
1079
- * Licensed under EUPL, Version 1.2 (the "License");
1080
- * you may not use this file except in compliance with the License.
1081
- * You may obtain a copy of the License at
1082
- *
1083
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
1084
- *
1085
- * Unless required by applicable law or agreed to in writing, software
1086
- * distributed under the License is distributed on an "AS IS" basis,
1087
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1088
- * See the License for the specific language governing permissions and
1089
- * limitations under the License.
1090
- */
1091
- class DossierDetailComponent {
1092
- constructor(componentFactoryResolver, translateService, documentService, processService, route, router, location, tabService, configService) {
1093
- this.componentFactoryResolver = componentFactoryResolver;
1094
- this.translateService = translateService;
1095
- this.documentService = documentService;
1096
- this.processService = processService;
1097
- this.route = route;
1098
- this.router = router;
1099
- this.location = location;
1100
- this.tabService = tabService;
1101
- this.configService = configService;
1102
- this.document = null;
1103
- this.tabLoader = null;
1104
- this.processDefinitionListFields = [];
1105
- this.processDocumentDefinitions = [];
1106
- this.customDossierHeaderItems = [];
1107
- this.snapshot = this.route.snapshot.paramMap;
1108
- this.documentDefinitionName = this.snapshot.get('documentDefinitionName') || '';
1109
- this.documentId = this.snapshot.get('documentId') || '';
1110
- }
1111
- ngOnInit() {
1112
- this.tabLoader = new TabLoaderImpl(this.tabService.getTabs(), this.componentFactoryResolver, this.viewContainerRef, this.translateService, this.router, this.location);
1113
- this.documentService
1114
- .getDocumentDefinition(this.documentDefinitionName)
1115
- .subscribe(definition => {
1116
- this.documentDefinitionNameTitle = definition.schema.title;
1117
- });
1118
- this.getCustomDossierHeader();
1119
- this.initialTabName = this.snapshot.get('tab');
1120
- this.tabLoader.initial(this.initialTabName);
1121
- this.getAllAssociatedProcessDefinitions();
1122
- }
1123
- getAllAssociatedProcessDefinitions() {
1124
- this.documentService
1125
- .findProcessDocumentDefinitions(this.documentDefinitionName)
1126
- .subscribe(processDocumentDefinitions => {
1127
- this.processDocumentDefinitions = processDocumentDefinitions.filter(processDocumentDefinition => processDocumentDefinition.startableByUser);
1128
- this.processDefinitionListFields = [
1129
- {
1130
- key: 'processName',
1131
- label: 'Proces',
1132
- },
1133
- ];
1134
- });
1135
- }
1136
- startProcess(processDocumentDefinition) {
1137
- this.supportingProcessStart.openModal(processDocumentDefinition, this.documentId);
1138
- }
1139
- getCustomDossierHeader() {
1140
- var _a;
1141
- if ((_a = this.configService.config.customDossierHeader) === null || _a === void 0 ? void 0 : _a.hasOwnProperty(this.documentDefinitionName.toLowerCase())) {
1142
- this.documentService.getDocument(this.documentId).subscribe(document => {
1143
- var _a;
1144
- this.document = document;
1145
- (_a = this.configService.config.customDossierHeader[this.documentDefinitionName.toLowerCase()]) === null || _a === void 0 ? void 0 : _a.forEach(item => this.getCustomDossierHeaderItem(item));
1146
- });
1147
- }
1148
- }
1149
- getCustomDossierHeaderItem(item) {
1150
- var _a;
1151
- this.customDossierHeaderItems.push({
1152
- label: item['labelTranslationKey'] || '',
1153
- columnSize: item['columnSize'] || 3,
1154
- textSize: item['textSize'] || 'md',
1155
- customClass: item['customClass'] || '',
1156
- value: (_a = item['propertyPaths']) === null || _a === void 0 ? void 0 : _a.reduce((prev, curr) => prev + this.getStringFromDocumentPath(item, curr), ''),
1157
- });
1158
- }
1159
- getStringFromDocumentPath(item, path) {
1160
- const prefix = item['propertyPaths'].indexOf(path) > 0 ? ' ' : '';
1161
- const string = path.split('.').reduce((o, i) => o[i], this.document.content) || item['noValueText'] || '';
1162
- const regex = new RegExp('(T\\d\\d:\\d\\d:\\d\\d[+-])');
1163
- const formattedString = regex.test(string) ? moment_(string).format('DD-MM-YYYY') : string;
1164
- return prefix + formattedString;
1165
- }
1166
- }
1167
- DossierDetailComponent.decorators = [
1168
- { type: Component, args: [{
1169
- selector: 'valtimo-dossier-detail',
1170
- 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 <div class=\"col-12 px-0 mb-5\">\n <valtimo-widget>\n <div class=\"card-header bg-light card-header-divider pb-2\">\n <div class=\"row\">\n <div class=\"col\">\n <div class=\"row\" *ngIf=\"customDossierHeaderItems.length > 0; else defaultTitle\">\n <span\n class=\"mb-0 mt-0 pb-2 align-self-end col-xl-{{ item.columnSize }} col-lg-{{\n item.columnSize * 2\n }} {{ item.customClass }}\"\n [ngClass]=\"{\n h1: item.textSize === 'xl',\n h2: item.textSize === 'lg',\n h3: item.textSize === 'md',\n h4: item.textSize === 'sm',\n h5: item.textSize === 'xs'\n }\"\n *ngFor=\"let item of customDossierHeaderItems\"\n >\n <span *ngIf=\"item.label != ''\">{{ item.label | translate }}</span>\n <span *ngIf=\"item.label != '' && item.value != '' && item.value != null\">: </span>\n <strong>{{ item.value }}</strong>\n </span>\n </div>\n <ng-template #defaultTitle>\n {{ documentDefinitionNameTitle }}\n </ng-template>\n </div>\n <div class=\"btn-group mt-m3px mb-3 col-auto\">\n <valtimo-extension\n module=\"dossier\"\n page=\"dossier-detail\"\n section=\"card-header\"\n ></valtimo-extension>\n <div class=\"dropdown\">\n <button\n class=\"btn btn-primary dropdown-toggle\"\n type=\"button\"\n id=\"startProcessDropdown\"\n placement=\"bottom\"\n [ngbTooltip]=\"processDocumentDefinitions.length === 0 ? 'No action' : null\"\n [disabled]=\"processDocumentDefinitions.length === 0\"\n data-toggle=\"dropdown\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n >\n <span>Start</span>\n <i class=\"ml-1 mdi mdi-chevron-down\"></i>\n </button>\n <div\n class=\"dropdown-menu dropdown-menu-right\"\n aria-labelledby=\"startProcessDropdown\"\n >\n <button\n *ngFor=\"let processDocumentDefinition of processDocumentDefinitions\"\n class=\"dropdown-item p\"\n href=\"#\"\n (click)=\"startProcess(processDocumentDefinition)\"\n >\n {{ processDocumentDefinition.processName }}\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n <ul class=\"nav nav-tabs\">\n <li class=\"nav-item\" *ngFor=\"let tab of tabLoader.tabs\">\n <a\n id=\"{{ tab.name }}-tab\"\n class=\"nav-link clickable\"\n [ngClass]=\"{active: tab.isActive()}\"\n data-toggle=\"tab\"\n (click)=\"tabLoader.load(tab)\"\n >\n {{ tabLoader.translateTabName(tab) }}\n </a>\n </li>\n </ul>\n <div class=\"card-body bg-white p-5 position-relative tab-container\">\n <ng-template #tabContainer>Loading...</ng-template>\n <div class=\"clearfix\"></div>\n </div>\n </valtimo-widget>\n </div>\n <valtimo-dossier-supporting-process-start-modal\n (formSubmit)=\"tabLoader.refreshView()\"\n #supportingProcessStartModal\n ></valtimo-dossier-supporting-process-start-modal>\n </div>\n</div>\n",
1171
- styles: [".tab-container{min-height:300px}"]
1172
- },] }
1173
- ];
1174
- DossierDetailComponent.ctorParameters = () => [
1175
- { type: ComponentFactoryResolver },
1176
- { type: TranslateService },
1177
- { type: DocumentService },
1178
- { type: ProcessService },
1179
- { type: ActivatedRoute },
1180
- { type: Router },
1181
- { type: Location },
1182
- { type: TabService },
1183
- { type: ConfigService }
1184
- ];
1185
- DossierDetailComponent.propDecorators = {
1186
- viewContainerRef: [{ type: ViewChild, args: ['tabContainer', { read: ViewContainerRef, static: true },] }],
1187
- supportingProcessStart: [{ type: ViewChild, args: ['supportingProcessStartModal',] }]
1188
- };
1189
-
1190
- /*
1191
- * Copyright 2015-2021 Ritense BV, the Netherlands.
1192
- *
1193
- * Licensed under EUPL, Version 1.2 (the "License");
1194
- * you may not use this file except in compliance with the License.
1195
- * You may obtain a copy of the License at
1196
- *
1197
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
1198
- *
1199
- * Unless required by applicable law or agreed to in writing, software
1200
- * distributed under the License is distributed on an "AS IS" basis,
1201
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1202
- * See the License for the specific language governing permissions and
1203
- * limitations under the License.
1204
- */
1205
- const moment$3 = moment_;
1206
- moment$3.locale(localStorage.getItem('langKey') || '');
1207
- class DossierDetailTabContactMomentsComponent {
1208
- constructor(contactMomentService, alertService, translateService) {
1209
- this.contactMomentService = contactMomentService;
1210
- this.alertService = alertService;
1211
- this.translateService = translateService;
1212
- this.refetchContactMoments$ = new BehaviorSubject('');
1213
- this.contactMoments$ = this.refetchContactMoments$.pipe(switchMap(() => this.contactMomentService.getContactMoments()), map(contactMoments => contactMoments.map(contactMoment => {
1214
- const registratieDatum = moment$3(contactMoment.registratiedatum);
1215
- return new TimelineItemImpl(registratieDatum.format('DD MMM YYYY'), registratieDatum.format('HH:mm'), contactMoment.medewerkerIdentificatie.achternaam, contactMoment.kanaal, contactMoment.tekst, null);
1216
- })));
1217
- this.text$ = new BehaviorSubject('');
1218
- this.channel$ = new BehaviorSubject('MAIL');
1219
- this.requestData$ = combineLatest([this.text$, this.channel$]);
1220
- this.valid$ = this.requestData$.pipe(map(([text, channel]) => !!(text && channel)));
1221
- this.disabled$ = new BehaviorSubject(false);
1222
- }
1223
- textChange(text) {
1224
- this.text$.next(text);
1225
- }
1226
- buttonClick() {
1227
- this.modal.show();
1228
- }
1229
- saveNote() {
1230
- this.disable();
1231
- this.requestData$.pipe(take(1)).subscribe(([text, channel]) => {
1232
- this.contactMomentService.saveContactMoment({ kanaal: channel, tekst: text }).subscribe(() => {
1233
- this.alertService.success(this.translateService.instant('dossier.contactMoments.saveSuccess'));
1234
- this.enable();
1235
- this.clear();
1236
- this.modal.hide();
1237
- this.refetchContactMoments();
1238
- }, () => {
1239
- this.enable();
1240
- });
1241
- });
1242
- }
1243
- disable() {
1244
- this.disabled$.next(true);
1245
- }
1246
- enable() {
1247
- this.disabled$.next(false);
1248
- }
1249
- clear() {
1250
- this.text$.next('');
1251
- }
1252
- refetchContactMoments() {
1253
- this.refetchContactMoments$.next('');
1254
- }
1255
- }
1256
- DossierDetailTabContactMomentsComponent.decorators = [
1257
- { type: Component, args: [{
1258
- selector: 'valtimo-dossier-detail-tab-contact-moments',
1259
- template: "<!--\n ~ Copyright 2015-2021 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=\"contact-moments-container\">\n <ng-container *ngTemplateOutlet=\"buttons\"></ng-container>\n <ng-container *ngTemplateOutlet=\"moments\"></ng-container>\n</div>\n\n<valtimo-modal\n #contactMomentsNoteModal\n [title]=\"'dossier.contactMoments.popupTitle' | translate\"\n [showFooter]=\"true\"\n [elementId]=\"'contact-moments-modal'\"\n>\n <div class=\"mt-2\" body>\n <ng-container *ngTemplateOutlet=\"body\"></ng-container>\n </div>\n <div footer>\n <ng-container *ngTemplateOutlet=\"footer\"></ng-container>\n </div>\n</valtimo-modal>\n\n<ng-template #body>\n <form>\n <div class=\"form-group row\">\n <label class=\"col-12 col-sm-3 col-form-label text-sm-right\" for=\"body\">\n {{ 'dossier.contactMoments.noteText' | translate }}\n </label>\n <div class=\"col-12 col-sm-8 col-lg-6\">\n <textarea\n [disabled]=\"disabled$ | async\"\n class=\"form-control\"\n id=\"body\"\n name=\"body\"\n [ngModel]=\"text$ | async\"\n (ngModelChange)=\"textChange($event)\"\n ></textarea>\n </div>\n </div>\n </form>\n</ng-template>\n\n<ng-template #footer>\n <button\n *ngIf=\"(disabled$ | async) === false; else loading\"\n class=\"btn btn-primary\"\n [disabled]=\"(valid$ | async) === false || (disabled$ | async)\"\n (click)=\"saveNote()\"\n >\n {{ 'dossier.contactMoments.saveButtonText' | translate }}\n </button>\n</ng-template>\n\n<ng-template #loading>\n <valtimo-spinner [noMarginTop]=\"true\"></valtimo-spinner>\n</ng-template>\n\n<ng-template #buttons>\n <div class=\"btn-group mt-m3px mb-3 button-container\">\n <button class=\"btn btn-primary btn-space\" (click)=\"buttonClick()\">\n <i class=\"icon mdi mdi-calendar-note\"></i>\n &nbsp;{{ 'dossier.contactMoments.makeNoteButton' | translate }}\n </button>\n </div>\n</ng-template>\n\n<ng-template #moments>\n <div *ngIf=\"contactMoments$ | async as contactMoments; else loading\">\n <valtimo-timeline [items]=\"contactMoments\"></valtimo-timeline>\n </div>\n</ng-template>\n",
1260
- styles: ["/*!\n * Copyright 2015-2021 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 */.contact-moments-container{display:flex;flex-direction:column}.button-container{align-self:flex-end;display:inline}"]
1261
- },] }
1262
- ];
1263
- DossierDetailTabContactMomentsComponent.ctorParameters = () => [
1264
- { type: ContactMomentService },
1265
- { type: AlertService },
1266
- { type: TranslateService }
1267
- ];
1268
- DossierDetailTabContactMomentsComponent.propDecorators = {
1269
- modal: [{ type: ViewChild, args: ['contactMomentsNoteModal',] }]
1270
- };
1271
-
1272
- /*
1273
- * Copyright 2015-2020 Ritense BV, the Netherlands.
1274
- *
1275
- * Licensed under EUPL, Version 1.2 (the "License");
1276
- * you may not use this file except in compliance with the License.
1277
- * You may obtain a copy of the License at
1278
- *
1279
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
1280
- *
1281
- * Unless required by applicable law or agreed to in writing, software
1282
- * distributed under the License is distributed on an "AS IS" basis,
1283
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1284
- * See the License for the specific language governing permissions and
1285
- * limitations under the License.
1286
- */
1287
- const moment$4 = moment_;
1288
- moment$4.locale(localStorage.getItem('langKey') || '');
1289
- class DossierUpdateComponent {
1290
- constructor(taskService, documentService, route, toastr, location, dossierService) {
1291
- this.taskService = taskService;
1292
- this.documentService = documentService;
1293
- this.route = route;
1294
- this.toastr = toastr;
1295
- this.location = location;
1296
- this.customDefinitions = {};
1297
- const snapshot = this.route.snapshot.paramMap;
1298
- this.documentDefinitionName = snapshot.get('documentDefinitionName') || '';
1299
- this.documentId = snapshot.get('documentId') || '';
1300
- this.taskId = snapshot.get('taskId') || '';
1301
- this.implementationDefinitions = dossierService.getImplementationEnvironmentDefinitions(this.documentDefinitionName);
1302
- this.loadDocumentDefinition(this.documentDefinitionName);
1303
- this.loadDocument(this.documentId);
1304
- }
1305
- ngOnInit() {
1306
- this.getTask(this.taskId);
1307
- if (this.implementationDefinitions.definitions.detail.summary) {
1308
- this.customDefinitions = this.implementationDefinitions.definitions.detail.summary;
1309
- }
1310
- }
1311
- loadDocumentDefinition(name) {
1312
- this.documentService.getDocumentDefinition(name).subscribe(definition => {
1313
- this.schema = definition.schema;
1314
- });
1315
- }
1316
- loadDocument(id) {
1317
- this.documentService.getDocument(id).subscribe(document => {
1318
- this.document = document;
1319
- });
1320
- }
1321
- getTask(id) {
1322
- this.taskService.getTask(id).subscribe(task => {
1323
- this.task = task;
1324
- this.task.task.created = moment$4(this.task.task.created).format('DD MMM YYYY HH:mm');
1325
- this.page = {
1326
- title: this.task.task.name,
1327
- subtitle: `Created ${moment$4(this.task.task.created).fromNow()}`,
1328
- };
1329
- });
1330
- }
1331
- reset() {
1332
- this.loadDocument(this.documentId);
1333
- }
1334
- back() {
1335
- this.location.back();
1336
- }
1337
- save() {
1338
- const document = {
1339
- documentId: this.document.id,
1340
- content: this.document.content,
1341
- versionBasedOn: this.document.version,
1342
- };
1343
- this.documentService.modifyDocument(document).subscribe(result => {
1344
- this.document = result.document;
1345
- this.toastr.success('Document aangepast');
1346
- this.location.back();
1347
- });
1348
- }
1349
- submit(data) {
1350
- // merge document content with formdata
1351
- const mergedData = Object.assign({}, this.document.content, data);
1352
- const documentData = {
1353
- request: {
1354
- documentId: this.document.id,
1355
- content: mergedData,
1356
- versionBasedOn: this.document.version,
1357
- },
1358
- taskId: this.task.task.id,
1359
- };
1360
- this.documentService.modifyDocumentAndCompleteTask(documentData).subscribe(result => {
1361
- this.toastr.success(this.task.task.name + ' has successfully been completed');
1362
- this.location.back();
1363
- });
1364
- }
1365
- returnZero() {
1366
- return 0;
1367
- }
1368
- }
1369
- DossierUpdateComponent.decorators = [
1370
- { type: Component, args: [{
1371
- selector: 'valtimo-dossier-update',
1372
- 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 <div class=\"col-12 px-0 mb-5\">\n <valtimo-widget [title]=\"page?.title\" [subtitle]=\"page?.subtitle\" [divider]=\"true\">\n <div class=\"card-body\">\n <!--view with custom definitions-->\n <div *ngIf=\"this.customDefinitions\">\n <div\n class=\"mb-4\"\n *ngFor=\"let definition of this.customDefinitions | keyvalue: returnZero\"\n ></div>\n <div class=\"row pt-3 mt-1\">\n <div class=\"col-sm-12\">\n <div class=\"text-right\">\n <button\n class=\"btn btn-space btn-default float-left\"\n type=\"button\"\n (click)=\"back()\"\n id=\"back-button\"\n >\n Back\n </button>\n <button\n class=\"btn btn-space btn-secondary\"\n type=\"button\"\n (click)=\"reset()\"\n id=\"reset-button\"\n >\n Reset\n </button>\n <button\n class=\"btn btn-space btn-primary\"\n type=\"button\"\n (click)=\"save()\"\n id=\"save-button\"\n >\n Save\n </button>\n <button\n class=\"btn btn-space btn-primary\"\n type=\"submit\"\n (click)=\"submit({})\"\n id=\"submit-button\"\n >\n Submit\n </button>\n </div>\n </div>\n </div>\n </div>\n\n <valtimo-camunda-form\n *ngIf=\"task?.formFields && !this.customDefinitions\"\n (submitted)=\"submit($event)\"\n [formFields]=\"task.formFields\"\n [componentName]=\"task.formLocation\"\n ></valtimo-camunda-form>\n </div>\n </valtimo-widget>\n </div>\n </div>\n</div>\n",
1373
- styles: [""]
1374
- },] }
1375
- ];
1376
- DossierUpdateComponent.ctorParameters = () => [
1377
- { type: TaskService },
1378
- { type: DocumentService },
1379
- { type: ActivatedRoute },
1380
- { type: ToastrService },
1381
- { type: Location },
1382
- { type: DossierService }
1383
- ];
1384
-
1385
- /*
1386
- * Copyright 2015-2020 Ritense BV, the Netherlands.
1387
- *
1388
- * Licensed under EUPL, Version 1.2 (the "License");
1389
- * you may not use this file except in compliance with the License.
1390
- * You may obtain a copy of the License at
1391
- *
1392
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
1393
- *
1394
- * Unless required by applicable law or agreed to in writing, software
1395
- * distributed under the License is distributed on an "AS IS" basis,
1396
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1397
- * See the License for the specific language governing permissions and
1398
- * limitations under the License.
1399
- */
1400
- const ɵ0 = { title: 'Dossiers', roles: [ROLE_USER] }, ɵ1 = { title: 'Dossiers', parentPath: 'dossiers/:documentDefinitionName', roles: [ROLE_USER] }, ɵ2 = {
1401
- title: 'Task details',
1402
- parentPath: 'dossiers/:documentDefinitionName/document/:documentId/:tab',
1403
- roles: [ROLE_USER],
1404
- };
1405
- const routes = [
1406
- {
1407
- path: 'dossiers/:documentDefinitionName',
1408
- component: DossierListComponent,
1409
- canActivate: [AuthGuardService],
1410
- data: ɵ0,
1411
- },
1412
- {
1413
- path: 'dossiers/:documentDefinitionName/document/:documentId/:tab',
1414
- component: DossierDetailComponent,
1415
- canActivate: [AuthGuardService],
1416
- data: ɵ1,
1417
- },
1418
- {
1419
- path: 'dossiers/:documentDefinitionName/document/:documentId/:tab/tasks/:taskId',
1420
- component: DossierUpdateComponent,
1421
- canActivate: [AuthGuardService],
1422
- data: ɵ2,
1423
- },
1424
- ];
1425
- class DossierRoutingModule {
1426
- }
1427
- DossierRoutingModule.decorators = [
1428
- { type: NgModule, args: [{
1429
- imports: [CommonModule, RouterModule.forChild(routes)],
1430
- exports: [RouterModule],
1431
- },] }
1432
- ];
1433
-
1434
- /*
1435
- * Copyright 2015-2020 Ritense BV, the Netherlands.
1436
- *
1437
- * Licensed under EUPL, Version 1.2 (the "License");
1438
- * you may not use this file except in compliance with the License.
1439
- * You may obtain a copy of the License at
1440
- *
1441
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
1442
- *
1443
- * Unless required by applicable law or agreed to in writing, software
1444
- * distributed under the License is distributed on an "AS IS" basis,
1445
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1446
- * See the License for the specific language governing permissions and
1447
- * limitations under the License.
1448
- */
1449
- const ɵ0$1 = HttpLoaderFactory;
1450
- class DossierModule {
1451
- static forRoot(tabsFactory) {
1452
- return {
1453
- ngModule: DossierModule,
1454
- providers: [
1455
- DossierService,
1456
- TabService,
1457
- {
1458
- provide: TAB_MAP,
1459
- useFactory: tabsFactory,
1460
- },
1461
- {
1462
- provide: ANALYZE_FOR_ENTRY_COMPONENTS,
1463
- useValue: Array.from(tabsFactory().values()),
1464
- multi: true,
1465
- },
1466
- ],
1467
- };
1468
- }
1469
- }
1470
- DossierModule.decorators = [
1471
- { type: NgModule, args: [{
1472
- declarations: [
1473
- DossierListComponent,
1474
- DossierDetailComponent,
1475
- DossierDetailTabSummaryComponent,
1476
- DossierDetailTabProgressComponent,
1477
- DossierDetailTabAuditComponent,
1478
- DossierDetailTabDocumentsComponent,
1479
- DossierDetailTabContactMomentsComponent,
1480
- DossierUpdateComponent,
1481
- DossierProcessStartModalComponent,
1482
- DossierSupportingProcessStartModalComponent,
1483
- ],
1484
- imports: [
1485
- CommonModule,
1486
- DossierRoutingModule,
1487
- ListModule,
1488
- WidgetModule,
1489
- BpmnJsDiagramModule,
1490
- TimelineModule,
1491
- CamundaFormModule,
1492
- ProcessModule,
1493
- FilterSidebarModule,
1494
- NgbButtonsModule,
1495
- DataListModule,
1496
- FormsModule,
1497
- FormModule,
1498
- FormIoModule,
1499
- ModalModule,
1500
- SpinnerModule,
1501
- TranslateModule.forRoot({
1502
- loader: {
1503
- provide: TranslateLoader,
1504
- useFactory: ɵ0$1,
1505
- deps: [HttpClient],
1506
- },
1507
- }),
1508
- TaskModule,
1509
- ModalModule,
1510
- NgbTooltipModule,
1511
- UploaderModule,
1512
- DropzoneModule,
1513
- NgbPaginationModule,
1514
- ConfigModule,
1515
- ],
1516
- exports: [DossierListComponent, DossierDetailComponent],
1517
- entryComponents: [
1518
- DossierDetailTabSummaryComponent,
1519
- DossierDetailTabProgressComponent,
1520
- DossierDetailTabAuditComponent,
1521
- DossierDetailTabDocumentsComponent,
1522
- DossierDetailTabContactMomentsComponent,
1523
- ],
1524
- },] }
1525
- ];
1526
-
1527
- /*
1528
- * Copyright 2015-2020 Ritense BV, the Netherlands.
1529
- *
1530
- * Licensed under EUPL, Version 1.2 (the "License");
1531
- * you may not use this file except in compliance with the License.
1532
- * You may obtain a copy of the License at
1533
- *
1534
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
1535
- *
1536
- * Unless required by applicable law or agreed to in writing, software
1537
- * distributed under the License is distributed on an "AS IS" basis,
1538
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1539
- * See the License for the specific language governing permissions and
1540
- * limitations under the License.
1541
- */
1542
-
1543
- /**
1544
- * Generated bundle index. Do not edit.
1545
- */
1546
-
1547
- export { DEFAULT_TABS, DefaultTabs, DossierDetailComponent, DossierDetailTabAuditComponent, DossierDetailTabContactMomentsComponent, DossierDetailTabDocumentsComponent, DossierDetailTabProgressComponent, DossierDetailTabSummaryComponent, DossierListComponent, DossierModule, DossierService, TAB_MAP, TabImpl, TabLoaderImpl, TabService, ɵ0$1 as ɵ0, DossierUpdateComponent as ɵa, DossierProcessStartModalComponent as ɵb, DossierSupportingProcessStartModalComponent as ɵc, DossierRoutingModule as ɵd };
1548
- //# sourceMappingURL=valtimo-dossier.js.map