@valtimo/dossier 4.15.3-next-main.14 → 4.16.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 (42) hide show
  1. package/bundles/valtimo-dossier.umd.js +368 -147
  2. package/bundles/valtimo-dossier.umd.js.map +1 -1
  3. package/bundles/valtimo-dossier.umd.min.js +1 -15
  4. package/bundles/valtimo-dossier.umd.min.js.map +1 -1
  5. package/esm2015/lib/dossier-detail/dossier-detail.component.js +16 -11
  6. package/esm2015/lib/dossier-detail/tab/audit/audit.component.js +3 -3
  7. package/esm2015/lib/dossier-detail/tab/contact-moments/contact-moments.component.js +56 -16
  8. package/esm2015/lib/dossier-detail/tab/documents/documents.component.js +42 -21
  9. package/esm2015/lib/dossier-detail/tab/progress/progress.component.js +5 -3
  10. package/esm2015/lib/dossier-detail/tab/summary/summary.component.js +7 -5
  11. package/esm2015/lib/dossier-detail-tab-enum.js +1 -1
  12. package/esm2015/lib/dossier-list/dossier-list.component.js +12 -8
  13. package/esm2015/lib/dossier-process-start-modal/dossier-process-start-modal.component.js +16 -8
  14. package/esm2015/lib/dossier-routing.module.js +13 -12
  15. package/esm2015/lib/dossier-supporting-process-start-modal/dossier-supporting-process-start-modal.component.js +16 -8
  16. package/esm2015/lib/dossier-update/dossier-update.component.js +6 -6
  17. package/esm2015/lib/dossier.config.js +2 -2
  18. package/esm2015/lib/dossier.module.js +14 -17
  19. package/esm2015/lib/dossier.service.js +6 -3
  20. package/esm2015/lib/models/index.js +19 -0
  21. package/esm2015/lib/models/tabs.model.js +104 -0
  22. package/esm2015/lib/tab.service.js +3 -3
  23. package/esm2015/public_api.js +2 -1
  24. package/esm2015/valtimo-dossier.js +1 -1
  25. package/fesm2015/valtimo-dossier.js +306 -99
  26. package/fesm2015/valtimo-dossier.js.map +1 -1
  27. package/lib/dossier-detail/dossier-detail.component.d.ts +2 -2
  28. package/lib/dossier-detail/tab/audit/audit.component.d.ts +1 -1
  29. package/lib/dossier-detail/tab/contact-moments/contact-moments.component.d.ts +23 -8
  30. package/lib/dossier-detail/tab/documents/documents.component.d.ts +11 -6
  31. package/lib/dossier-detail/tab/progress/progress.component.d.ts +1 -1
  32. package/lib/dossier-detail/tab/summary/summary.component.d.ts +3 -3
  33. package/lib/dossier-list/dossier-list.component.d.ts +1 -2
  34. package/lib/dossier-process-start-modal/dossier-process-start-modal.component.d.ts +2 -3
  35. package/lib/dossier-supporting-process-start-modal/dossier-supporting-process-start-modal.component.d.ts +2 -3
  36. package/lib/dossier.service.d.ts +2 -2
  37. package/lib/models/index.d.ts +1 -0
  38. package/lib/models/tabs.model.d.ts +50 -0
  39. package/lib/tab.service.d.ts +1 -1
  40. package/package.json +1 -1
  41. package/public_api.d.ts +1 -0
  42. package/valtimo-dossier.metadata.json +1 -1
@@ -1,8 +1,148 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/router'), require('@ngx-translate/core'), require('@valtimo/document'), require('moment'), require('rxjs'), require('@valtimo/config'), require('@valtimo/contract'), require('@angular/common'), require('@valtimo/process'), require('@valtimo/task'), require('@valtimo/form'), require('@valtimo/security'), require('ngx-spinner'), require('ngx-toastr'), require('@valtimo/resource'), require('rxjs/operators'), require('@valtimo/contact-moment'), require('@valtimo/components'), require('@ng-bootstrap/ng-bootstrap'), require('@valtimo/form-link'), require('ngx-logger'), require('@angular/forms'), require('@angular/common/http')) :
3
- typeof define === 'function' && define.amd ? define('@valtimo/dossier', ['exports', '@angular/core', '@angular/router', '@ngx-translate/core', '@valtimo/document', 'moment', 'rxjs', '@valtimo/config', '@valtimo/contract', '@angular/common', '@valtimo/process', '@valtimo/task', '@valtimo/form', '@valtimo/security', 'ngx-spinner', 'ngx-toastr', '@valtimo/resource', 'rxjs/operators', '@valtimo/contact-moment', '@valtimo/components', '@ng-bootstrap/ng-bootstrap', '@valtimo/form-link', 'ngx-logger', '@angular/forms', '@angular/common/http'], factory) :
4
- (global = global || self, factory((global.valtimo = global.valtimo || {}, global.valtimo.dossier = {}), global.ng.core, global.ng.router, global.core$1, global.document, global.moment, global.rxjs, global.config, global.contract, global.ng.common, global.process, global.task, global.form, global.security, global.ngxSpinner, global.ngxToastr, global.resource, global.rxjs.operators, global.contactMoment, global.components, global.ngBootstrap, global.formLink, global.ngxLogger, global.ng.forms, global.ng.common.http));
5
- }(this, (function (exports, i0, router, core, document, moment_, rxjs, i1, contract, common, process, task, form, security, ngxSpinner, ngxToastr, resource, operators, contactMoment, components, ngBootstrap, formLink, ngxLogger, forms, http) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/router'), require('@ngx-translate/core'), require('@valtimo/document'), require('moment'), require('rxjs'), require('@valtimo/config'), require('@angular/common'), require('@valtimo/process'), require('@valtimo/task'), require('@valtimo/form'), require('@valtimo/components'), require('@valtimo/security'), require('ngx-spinner'), require('ngx-toastr'), require('@valtimo/resource'), require('rxjs/operators'), require('@valtimo/contact-moment'), require('@ng-bootstrap/ng-bootstrap'), require('@valtimo/form-link'), require('ngx-logger'), require('@angular/forms'), require('@angular/common/http')) :
3
+ typeof define === 'function' && define.amd ? define('@valtimo/dossier', ['exports', '@angular/core', '@angular/router', '@ngx-translate/core', '@valtimo/document', 'moment', 'rxjs', '@valtimo/config', '@angular/common', '@valtimo/process', '@valtimo/task', '@valtimo/form', '@valtimo/components', '@valtimo/security', 'ngx-spinner', 'ngx-toastr', '@valtimo/resource', 'rxjs/operators', '@valtimo/contact-moment', '@ng-bootstrap/ng-bootstrap', '@valtimo/form-link', 'ngx-logger', '@angular/forms', '@angular/common/http'], factory) :
4
+ (global = global || self, factory((global.valtimo = global.valtimo || {}, global.valtimo.dossier = {}), global.ng.core, global.ng.router, global.core$1, global.document, global.moment, global.rxjs, global.config, global.ng.common, global.process, global.task, global.form, global.components, global.security, global.ngxSpinner, global.ngxToastr, global.resource, global.rxjs.operators, global.contactMoment, global.ngBootstrap, global.formLink, global.ngxLogger, global.ng.forms, global.ng.common.http));
5
+ }(this, (function (exports, i0, router, core, document, moment_, rxjs, i1, common, process, task, form, components, security, ngxSpinner, ngxToastr, resource, operators, contactMoment, ngBootstrap, formLink, ngxLogger, forms, http) { 'use strict';
6
+
7
+ /*
8
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
9
+ *
10
+ * Licensed under EUPL, Version 1.2 (the "License");
11
+ * you may not use this file except in compliance with the License.
12
+ * You may obtain a copy of the License at
13
+ *
14
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
15
+ *
16
+ * Unless required by applicable law or agreed to in writing, software
17
+ * distributed under the License is distributed on an "AS IS" basis,
18
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ * See the License for the specific language governing permissions and
20
+ * limitations under the License.
21
+ */
22
+ var TabLoaderImpl = /** @class */ (function () {
23
+ function TabLoaderImpl(tabs, componentFactoryResolver, viewContainerRef, translateService, router, location) {
24
+ this._tabs = null;
25
+ this._componentFactoryResolver = null;
26
+ this._viewContainerRef = null;
27
+ this._activeComponent = null;
28
+ this._activeTab = null;
29
+ this._translateService = null;
30
+ this._tabs = tabs;
31
+ this._componentFactoryResolver = componentFactoryResolver;
32
+ this._viewContainerRef = viewContainerRef;
33
+ this._translateService = translateService;
34
+ this._router = router;
35
+ this._location = location;
36
+ }
37
+ TabLoaderImpl.prototype.initial = function (tabName) {
38
+ var initialTab;
39
+ if (tabName) {
40
+ initialTab = this._tabs.find(function (tab) { return tab.name === tabName; });
41
+ }
42
+ else {
43
+ initialTab = this._tabs[0] || null;
44
+ }
45
+ this.load(initialTab);
46
+ };
47
+ TabLoaderImpl.prototype.load = function (newTab) {
48
+ if (newTab !== this._activeTab) {
49
+ this._tabs.forEach(function (tab) { return tab.deactivate(); });
50
+ this.replaceView(newTab);
51
+ this.replaceUrlState(newTab);
52
+ this.setActive(newTab);
53
+ }
54
+ };
55
+ TabLoaderImpl.prototype.refreshView = function () {
56
+ this.replaceView(this._activeTab);
57
+ };
58
+ TabLoaderImpl.prototype.replaceView = function (tab) {
59
+ var componentFactory = this._componentFactoryResolver.resolveComponentFactory(tab.component);
60
+ this._viewContainerRef.clear();
61
+ if (this._activeTab !== null) {
62
+ this._activeComponent.destroy();
63
+ }
64
+ this._activeComponent = this._viewContainerRef.createComponent(componentFactory);
65
+ };
66
+ TabLoaderImpl.prototype.replaceUrlState = function (tab) {
67
+ var currentUrl = this._router.url;
68
+ var urlParts = currentUrl.split('/');
69
+ urlParts.splice(urlParts.length - 1, 1, tab.name);
70
+ var newUrl = urlParts.join('/');
71
+ this._location.replaceState(newUrl);
72
+ };
73
+ TabLoaderImpl.prototype.setActive = function (tab) {
74
+ tab.activate();
75
+ this._activeTab = tab;
76
+ };
77
+ Object.defineProperty(TabLoaderImpl.prototype, "tabs", {
78
+ get: function () {
79
+ return this._tabs;
80
+ },
81
+ enumerable: false,
82
+ configurable: true
83
+ });
84
+ TabLoaderImpl.prototype.translateTabName = function (tab) {
85
+ return this._translateService.instant('dossier.tabs.' + tab.name);
86
+ };
87
+ return TabLoaderImpl;
88
+ }());
89
+ var TabImpl = /** @class */ (function () {
90
+ function TabImpl(name, sequence, component) {
91
+ this._active = false;
92
+ this._name = name;
93
+ this._sequence = sequence;
94
+ this._component = component;
95
+ }
96
+ Object.defineProperty(TabImpl.prototype, "name", {
97
+ get: function () {
98
+ return this._name;
99
+ },
100
+ enumerable: false,
101
+ configurable: true
102
+ });
103
+ Object.defineProperty(TabImpl.prototype, "sequence", {
104
+ get: function () {
105
+ return this._sequence;
106
+ },
107
+ enumerable: false,
108
+ configurable: true
109
+ });
110
+ Object.defineProperty(TabImpl.prototype, "component", {
111
+ get: function () {
112
+ return this._component;
113
+ },
114
+ enumerable: false,
115
+ configurable: true
116
+ });
117
+ TabImpl.prototype.activate = function () {
118
+ this._active = true;
119
+ };
120
+ TabImpl.prototype.deactivate = function () {
121
+ this._active = false;
122
+ };
123
+ TabImpl.prototype.isActive = function () {
124
+ return this._active;
125
+ };
126
+ return TabImpl;
127
+ }());
128
+
129
+ /*
130
+ *
131
+ * * Copyright 2015-2020 Ritense BV, the Netherlands.
132
+ * *
133
+ * * Licensed under EUPL, Version 1.2 (the "License");
134
+ * * you may not use this file except in compliance with the License.
135
+ * * You may obtain a copy of the License at
136
+ * *
137
+ * * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
138
+ * *
139
+ * * Unless required by applicable law or agreed to in writing, software
140
+ * * distributed under the License is distributed on an "AS IS" basis,
141
+ * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
142
+ * * See the License for the specific language governing permissions and
143
+ * * limitations under the License.
144
+ *
145
+ */
6
146
 
7
147
  /*! *****************************************************************************
8
148
  Copyright (c) Microsoft Corporation.
@@ -28,6 +168,8 @@
28
168
  return extendStatics(d, b);
29
169
  };
30
170
  function __extends(d, b) {
171
+ if (typeof b !== "function" && b !== null)
172
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
31
173
  extendStatics(d, b);
32
174
  function __() { this.constructor = d; }
33
175
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -213,11 +355,13 @@
213
355
  }
214
356
  return ar;
215
357
  }
358
+ /** @deprecated */
216
359
  function __spread() {
217
360
  for (var ar = [], i = 0; i < arguments.length; i++)
218
361
  ar = ar.concat(__read(arguments[i]));
219
362
  return ar;
220
363
  }
364
+ /** @deprecated */
221
365
  function __spreadArrays() {
222
366
  for (var s = 0, i = 0, il = arguments.length; i < il; i++)
223
367
  s += arguments[i].length;
@@ -226,7 +370,17 @@
226
370
  r[k] = a[j];
227
371
  return r;
228
372
  }
229
- ;
373
+ function __spreadArray(to, from, pack) {
374
+ if (pack || arguments.length === 2)
375
+ for (var i = 0, l = from.length, ar; i < l; i++) {
376
+ if (ar || !(i in from)) {
377
+ if (!ar)
378
+ ar = Array.prototype.slice.call(from, 0, i);
379
+ ar[i] = from[i];
380
+ }
381
+ }
382
+ return to.concat(ar || Array.prototype.slice.call(from));
383
+ }
230
384
  function __await(v) {
231
385
  return this instanceof __await ? (this.v = v, this) : new __await(v);
232
386
  }
@@ -291,18 +445,21 @@
291
445
  function __importDefault(mod) {
292
446
  return (mod && mod.__esModule) ? mod : { default: mod };
293
447
  }
294
- function __classPrivateFieldGet(receiver, privateMap) {
295
- if (!privateMap.has(receiver)) {
296
- throw new TypeError("attempted to get private field on non-instance");
297
- }
298
- return privateMap.get(receiver);
448
+ function __classPrivateFieldGet(receiver, state, kind, f) {
449
+ if (kind === "a" && !f)
450
+ throw new TypeError("Private accessor was defined without a getter");
451
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
452
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
453
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
299
454
  }
300
- function __classPrivateFieldSet(receiver, privateMap, value) {
301
- if (!privateMap.has(receiver)) {
302
- throw new TypeError("attempted to set private field on non-instance");
303
- }
304
- privateMap.set(receiver, value);
305
- return value;
455
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
456
+ if (kind === "m")
457
+ throw new TypeError("Private method is not writable");
458
+ if (kind === "a" && !f)
459
+ throw new TypeError("Private accessor was defined without a setter");
460
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
461
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
462
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
306
463
  }
307
464
 
308
465
  /*
@@ -360,7 +517,10 @@
360
517
  var defaultColumn = columns.find(function (column) { return column.default; });
361
518
  return {
362
519
  isSorting: false,
363
- state: { name: defaultColumn ? defaultColumn.propertyName : columns[0].propertyName, direction: 'DESC' }
520
+ state: {
521
+ name: defaultColumn ? defaultColumn.propertyName : columns[0].propertyName,
522
+ direction: 'DESC',
523
+ },
364
524
  };
365
525
  };
366
526
  return DossierService;
@@ -368,7 +528,7 @@
368
528
  DossierService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DossierService_Factory() { return new DossierService(i0.ɵɵinject(i1.ConfigService)); }, token: DossierService, providedIn: "root" });
369
529
  DossierService.decorators = [
370
530
  { type: i0.Injectable, args: [{
371
- providedIn: 'root'
531
+ providedIn: 'root',
372
532
  },] }
373
533
  ];
374
534
  DossierService.ctorParameters = function () { return [
@@ -410,7 +570,7 @@
410
570
  page: 1,
411
571
  size: 10,
412
572
  maxPaginationItemSize: 5,
413
- sort: undefined
573
+ sort: undefined,
414
574
  };
415
575
  this.selectedProcessDocumentDefinition = null;
416
576
  this.modalListenerAdded = false;
@@ -485,8 +645,8 @@
485
645
  _this.processDefinitionListFields = [
486
646
  {
487
647
  key: 'processName',
488
- label: 'Proces'
489
- }
648
+ label: 'Proces',
649
+ },
490
650
  ];
491
651
  });
492
652
  };
@@ -495,7 +655,9 @@
495
655
  return new document.DocumentSearchRequestImpl(json.definitionName, this.pagination.page - 1, this.pagination.size, json.sequence, json.createdBy, json.globalSearchFilter, json.sort);
496
656
  };
497
657
  DossierListComponent.prototype.buildDocumentSearchRequest = function () {
498
- return new document.DocumentSearchRequestImpl(this.documentDefinitionName, this.pagination.page - 1, this.pagination.size, this.sequence, this.createdBy, this.globalSearchFilter, this.pagination.sort && this.pagination.sort.isSorting ? this.pagination.sort : this.initialSortState);
658
+ return new document.DocumentSearchRequestImpl(this.documentDefinitionName, this.pagination.page - 1, this.pagination.size, this.sequence, this.createdBy, this.globalSearchFilter, this.pagination.sort && this.pagination.sort.isSorting
659
+ ? this.pagination.sort
660
+ : this.initialSortState);
499
661
  };
500
662
  DossierListComponent.prototype.storeSearch = function (documentSearchRequest) {
501
663
  localStorage.setItem(this.getCachedKey(), JSON.stringify(documentSearchRequest));
@@ -510,7 +672,9 @@
510
672
  return 'list-search-' + this.documentDefinitionName;
511
673
  };
512
674
  DossierListComponent.prototype.rowClick = function (document) {
513
- this.router.navigate(["/dossiers/" + this.documentDefinitionName + "/document/" + document.id + "/" + exports.DefaultTabs.summary]);
675
+ this.router.navigate([
676
+ "/dossiers/" + this.documentDefinitionName + "/document/" + document.id + "/" + exports.DefaultTabs.summary,
677
+ ]);
514
678
  };
515
679
  DossierListComponent.prototype.startDossier = function () {
516
680
  if (this.processDocumentDefinitions.length > 1) {
@@ -568,7 +732,7 @@
568
732
  DossierListComponent.decorators = [
569
733
  { type: i0.Component, args: [{
570
734
  selector: 'valtimo-dossier-list',
571
- 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 {{ '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\">{{ 'dashboard.startProcess.title' | translate }}</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\">{{ documents?.content.length || 0 }}</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",
735
+ 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 {{ '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",
572
736
  styles: [""]
573
737
  },] }
574
738
  ];
@@ -604,7 +768,7 @@
604
768
  this.snapshot = this.route.snapshot.paramMap;
605
769
  this.documentDefinitionName = this.snapshot.get('documentDefinitionName') || '';
606
770
  this.documentId = this.snapshot.get('documentId') || '';
607
- this.options = new contract.FormioOptionsImpl();
771
+ this.options = new components.FormioOptionsImpl();
608
772
  this.options.disableAlerts = true;
609
773
  }
610
774
  DossierDetailTabSummaryComponent.prototype.ngOnInit = function () {
@@ -629,7 +793,9 @@
629
793
  };
630
794
  DossierDetailTabSummaryComponent.prototype.loadProcessDocumentInstances = function (documentId) {
631
795
  var _this = this;
632
- this.documentService.findProcessDocumentInstances(documentId).subscribe(function (processDocumentInstances) {
796
+ this.documentService
797
+ .findProcessDocumentInstances(documentId)
798
+ .subscribe(function (processDocumentInstances) {
633
799
  _this.processDocumentInstances = processDocumentInstances;
634
800
  _this.processDocumentInstances.forEach(function (instance) {
635
801
  _this.loadProcessInstanceTasks(instance.id.processInstanceId);
@@ -678,7 +844,7 @@
678
844
  DossierDetailTabSummaryComponent.decorators = [
679
845
  { type: i0.Component, args: [{
680
846
  selector: 'valtimo-dossier-detail-tab-summary',
681
- 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 class=\"p-3 clickable hoverable\" (click)=\"rowTaskClick(task)\" *ngIf=\"!task.isLocked()\">\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 class=\"float-right badge badge-pill badge-secondary bg-grey\"\n ngbTooltip=\"{{ 'summary.taskLocked' | translate }}\">\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",
847
+ 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",
682
848
  encapsulation: i0.ViewEncapsulation.None,
683
849
  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}"]
684
850
  },] }
@@ -722,7 +888,9 @@
722
888
  }
723
889
  DossierDetailTabProgressComponent.prototype.ngOnInit = function () {
724
890
  var _this = this;
725
- this.documentService.findProcessDocumentInstances(this.documentId).subscribe(function (processDocumentInstances) {
891
+ this.documentService
892
+ .findProcessDocumentInstances(this.documentId)
893
+ .subscribe(function (processDocumentInstances) {
726
894
  _this.processDocumentInstances = processDocumentInstances;
727
895
  _this.selectedProcessInstanceId = processDocumentInstances[0].id.processInstanceId;
728
896
  });
@@ -735,7 +903,7 @@
735
903
  DossierDetailTabProgressComponent.decorators = [
736
904
  { type: i0.Component, args: [{
737
905
  selector: 'valtimo-dossier-detail-tab-progress',
738
- 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><br/>\n <select class=\"form-control\" (change)=\"loadProcessInstance($event.target.value)\">\n <option *ngFor=\"let processDocumentInstance of processDocumentInstances\"\n [value]=\"processDocumentInstance.id.processInstanceId\"\n [selected]=\"selectedProcessInstanceId === processDocumentInstance.id.processInstanceId\">\n {{ processDocumentInstance.processName }}\n </option>\n </select>\n </div>\n <valtimo-process-diagram [processInstanceId]=\"selectedProcessInstanceId\"></valtimo-process-diagram>\n</div>\n",
906
+ 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",
739
907
  styles: [".full-height-tab-content{height:calc(100vh - 380px);width:100%}"]
740
908
  },] }
741
909
  ];
@@ -788,7 +956,7 @@
788
956
  page.content.forEach(function (auditRecord) {
789
957
  var occurredOn = moment$2(auditRecord.metaData.occurredOn);
790
958
  var fromNow = occurredOn.fromNow();
791
- timelineItems.push(new contract.TimelineItemImpl(occurredOn.format('DD MMM YYYY'), occurredOn.format('HH:mm'), auditRecord.metaData.user, fromNow, DossierDetailTabAuditComponent.getTranslationKey(auditRecord.auditEvent), auditRecord.auditEvent));
959
+ timelineItems.push(new components.TimelineItemImpl(occurredOn.format('DD MMM YYYY'), occurredOn.format('HH:mm'), auditRecord.metaData.user, fromNow, DossierDetailTabAuditComponent.getTranslationKey(auditRecord.auditEvent), auditRecord.auditEvent));
792
960
  });
793
961
  _this.timelineItems = timelineItems;
794
962
  _this.spinnerService.hide('auditSpinner');
@@ -806,7 +974,7 @@
806
974
  DossierDetailTabAuditComponent.decorators = [
807
975
  { type: i0.Component, args: [{
808
976
  selector: 'valtimo-dossier-detail-tab-audit',
809
- 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>{{ 'list.currentPage' | translate: {current: pagination.number, total: pagination.totalPages} }}</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)\"></ngb-pagination>\n </div>\n</div>\n",
977
+ 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",
810
978
  styles: [".audit-pagination{border-top:1px solid #dee2e6;margin:0 -1.923rem -1.923rem!important}"]
811
979
  },] }
812
980
  ];
@@ -819,46 +987,47 @@
819
987
  paginationClicked: [{ type: i0.Output }]
820
988
  };
821
989
 
822
- /*
823
- * Copyright 2015-2020 Ritense BV, the Netherlands.
824
- *
825
- * Licensed under EUPL, Version 1.2 (the "License");
826
- * you may not use this file except in compliance with the License.
827
- * You may obtain a copy of the License at
828
- *
829
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
830
- *
831
- * Unless required by applicable law or agreed to in writing, software
832
- * distributed under the License is distributed on an "AS IS" basis,
833
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
834
- * See the License for the specific language governing permissions and
835
- * limitations under the License.
836
- */
837
990
  var DossierDetailTabDocumentsComponent = /** @class */ (function () {
838
- function DossierDetailTabDocumentsComponent(route, documentService, toastrService, uploadProviderService, downloadService) {
991
+ function DossierDetailTabDocumentsComponent(route, documentService, toastrService, uploadProviderService, downloadService, translateService, configService) {
992
+ var _this = this;
993
+ var _a, _b;
839
994
  this.route = route;
840
995
  this.documentService = documentService;
841
996
  this.toastrService = toastrService;
842
997
  this.uploadProviderService = uploadProviderService;
843
998
  this.downloadService = downloadService;
844
- this.relatedFiles = [];
999
+ this.translateService = translateService;
1000
+ this.configService = configService;
1001
+ this.maxFileSize = ((_b = (_a = this.configService) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.caseFileSizeUploadLimitMB) || 5;
1002
+ this.refetch$ = new rxjs.BehaviorSubject(null);
1003
+ this.relatedFiles$ = this.refetch$.pipe(operators.switchMap(function () { return rxjs.combineLatest([
1004
+ _this.documentService.getDocument(_this.documentId),
1005
+ _this.translateService.stream('key'),
1006
+ ]); }), operators.map(function (_c) {
1007
+ var _d = __read(_c, 1), document = _d[0];
1008
+ var relatedFiles = (document === null || document === void 0 ? void 0 : document.relatedFiles) || [];
1009
+ var translatedFiles = relatedFiles.map(function (file) {
1010
+ return Object.assign(Object.assign({}, file), { createdBy: file.createdBy || _this.translateService.instant('list.automaticallyGenerated') });
1011
+ });
1012
+ return translatedFiles || [];
1013
+ }));
845
1014
  this.fields = [
846
1015
  { key: 'fileName', label: 'File name' },
847
1016
  { key: 'sizeInBytes', label: 'Size in bytes' },
848
1017
  { key: 'createdOn', label: 'Created on', viewType: 'date' },
849
- { key: 'createdBy', label: 'Created by' }
1018
+ { key: 'createdBy', label: 'Created by' },
850
1019
  ];
851
1020
  this.actions = [
852
1021
  {
853
1022
  columnName: '',
854
1023
  iconClass: 'fas fa-external-link-alt',
855
- callback: this.downloadDocument.bind(this)
1024
+ callback: this.downloadDocument.bind(this),
856
1025
  },
857
1026
  {
858
1027
  columnName: '',
859
1028
  iconClass: 'fas fa-trash-alt',
860
- callback: this.removeRelatedFile.bind(this)
861
- }
1029
+ callback: this.removeRelatedFile.bind(this),
1030
+ },
862
1031
  ];
863
1032
  this.uploading$ = new rxjs.BehaviorSubject(false);
864
1033
  var snapshot = this.route.snapshot.paramMap;
@@ -866,29 +1035,28 @@
866
1035
  this.documentDefinitionName = snapshot.get('documentDefinitionName') || '';
867
1036
  }
868
1037
  DossierDetailTabDocumentsComponent.prototype.ngOnInit = function () {
869
- this.loadDocuments();
1038
+ this.refetchDocuments();
870
1039
  };
871
1040
  DossierDetailTabDocumentsComponent.prototype.fileSelected = function (file) {
872
1041
  var _this = this;
873
1042
  this.uploading$.next(true);
874
- this.uploadProviderService.uploadFile(file, this.documentDefinitionName).pipe(operators.switchMap(function (resourceFile) { return _this.documentService.assignResource(_this.documentId, resourceFile.data.resourceId); })).subscribe(function () {
1043
+ this.uploadProviderService
1044
+ .uploadFile(file, this.documentDefinitionName)
1045
+ .pipe(operators.switchMap(function (resourceFile) { return _this.documentService.assignResource(_this.documentId, resourceFile.data.resourceId); }))
1046
+ .subscribe(function () {
875
1047
  _this.toastrService.success('Successfully uploaded document to dossier');
876
- _this.loadDocuments();
1048
+ _this.refetchDocuments();
877
1049
  _this.uploading$.next(false);
878
1050
  }, function () {
879
1051
  _this.toastrService.error('Failed to upload document to dossier');
880
1052
  _this.uploading$.next(false);
881
1053
  });
882
1054
  };
883
- DossierDetailTabDocumentsComponent.prototype.loadDocuments = function () {
884
- var _this = this;
885
- this.documentService.getDocument(this.documentId).subscribe(function (document) {
886
- _this.relatedFiles = document.relatedFiles;
887
- });
888
- };
889
1055
  DossierDetailTabDocumentsComponent.prototype.downloadDocument = function (relatedFile) {
890
1056
  var _this = this;
891
- this.uploadProviderService.getResource(relatedFile.fileId).subscribe(function (resource) {
1057
+ this.uploadProviderService
1058
+ .getResource(relatedFile.fileId)
1059
+ .subscribe(function (resource) {
892
1060
  _this.downloadService.downloadFile(resource.url, resource.resource.name);
893
1061
  });
894
1062
  };
@@ -896,17 +1064,20 @@
896
1064
  var _this = this;
897
1065
  this.documentService.removeResource(this.documentId, relatedFile.fileId).subscribe(function () {
898
1066
  _this.toastrService.success('Successfully removed document from dossier');
899
- _this.loadDocuments();
1067
+ _this.refetchDocuments();
900
1068
  }, function () {
901
1069
  _this.toastrService.error('Failed to remove document from dossier');
902
1070
  });
903
1071
  };
1072
+ DossierDetailTabDocumentsComponent.prototype.refetchDocuments = function () {
1073
+ this.refetch$.next(null);
1074
+ };
904
1075
  return DossierDetailTabDocumentsComponent;
905
1076
  }());
906
1077
  DossierDetailTabDocumentsComponent.decorators = [
907
1078
  { type: i0.Component, args: [{
908
1079
  selector: 'valtimo-dossier-detail-tab-documents',
909
- 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]=\"5\"\n [showMaxFileSize]=\"false\"\n [camera]=\"false\"\n [uploading]=\"uploading$ | async\"\n></valtimo-dropzone>\n\n<valtimo-widget>\n <valtimo-list\n [fields]=\"fields\"\n [items]=\"relatedFiles\"\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\">{{ 'Overview of all documents in this dossier' | translate }}</h5>\n </div>\n </valtimo-list>\n</valtimo-widget>\n",
1080
+ 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",
910
1081
  styles: [""]
911
1082
  },] }
912
1083
  ];
@@ -915,7 +1086,9 @@
915
1086
  { type: document.DocumentService },
916
1087
  { type: ngxToastr.ToastrService },
917
1088
  { type: resource.UploadProviderService },
918
- { type: resource.DownloadService }
1089
+ { type: resource.DownloadService },
1090
+ { type: core.TranslateService },
1091
+ { type: i1.ConfigService }
919
1092
  ]; };
920
1093
 
921
1094
  /*
@@ -938,7 +1111,7 @@
938
1111
  [exports.DefaultTabs.summary, DossierDetailTabSummaryComponent],
939
1112
  [exports.DefaultTabs.progress, DossierDetailTabProgressComponent],
940
1113
  [exports.DefaultTabs.audit, DossierDetailTabAuditComponent],
941
- [exports.DefaultTabs.documents, DossierDetailTabDocumentsComponent]
1114
+ [exports.DefaultTabs.documents, DossierDetailTabDocumentsComponent],
942
1115
  ]);
943
1116
 
944
1117
  /*
@@ -964,7 +1137,7 @@
964
1137
  this.tabMap = tabMap;
965
1138
  var i = 0;
966
1139
  this.tabMap.forEach(function (component, name, map) {
967
- _this.tabs.push(new contract.TabImpl(name, i, component));
1140
+ _this.tabs.push(new TabImpl(name, i, component));
968
1141
  i++;
969
1142
  });
970
1143
  }
@@ -976,7 +1149,7 @@
976
1149
  TabService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TabService_Factory() { return new TabService(i0.ɵɵinject(TAB_MAP)); }, token: TabService, providedIn: "root" });
977
1150
  TabService.decorators = [
978
1151
  { type: i0.Injectable, args: [{
979
- providedIn: 'root'
1152
+ providedIn: 'root',
980
1153
  },] }
981
1154
  ];
982
1155
  TabService.ctorParameters = function () { return [
@@ -1018,8 +1191,10 @@
1018
1191
  }
1019
1192
  DossierDetailComponent.prototype.ngOnInit = function () {
1020
1193
  var _this = this;
1021
- this.tabLoader = new contract.TabLoaderImpl(this.tabService.getTabs(), this.componentFactoryResolver, this.viewContainerRef, this.translateService, this.router, this.location);
1022
- this.documentService.getDocumentDefinition(this.documentDefinitionName).subscribe(function (definition) {
1194
+ this.tabLoader = new TabLoaderImpl(this.tabService.getTabs(), this.componentFactoryResolver, this.viewContainerRef, this.translateService, this.router, this.location);
1195
+ this.documentService
1196
+ .getDocumentDefinition(this.documentDefinitionName)
1197
+ .subscribe(function (definition) {
1023
1198
  _this.documentDefinitionNameTitle = definition.schema.title;
1024
1199
  });
1025
1200
  this.initialTabName = this.snapshot.get('tab');
@@ -1028,13 +1203,16 @@
1028
1203
  };
1029
1204
  DossierDetailComponent.prototype.getAllAssociatedProcessDefinitions = function () {
1030
1205
  var _this = this;
1031
- this.documentService.findProcessDocumentDefinitions(this.documentDefinitionName).subscribe(function (processDocumentDefinitions) {
1032
- _this.processDocumentDefinitions = processDocumentDefinitions
1033
- .filter(function (processDocumentDefinition) { return processDocumentDefinition.startableByUser; });
1034
- _this.processDefinitionListFields = [{
1206
+ this.documentService
1207
+ .findProcessDocumentDefinitions(this.documentDefinitionName)
1208
+ .subscribe(function (processDocumentDefinitions) {
1209
+ _this.processDocumentDefinitions = processDocumentDefinitions.filter(function (processDocumentDefinition) { return processDocumentDefinition.startableByUser; });
1210
+ _this.processDefinitionListFields = [
1211
+ {
1035
1212
  key: 'processName',
1036
- label: 'Proces'
1037
- }];
1213
+ label: 'Proces',
1214
+ },
1215
+ ];
1038
1216
  });
1039
1217
  };
1040
1218
  DossierDetailComponent.prototype.startProcess = function (processDocumentDefinition) {
@@ -1045,7 +1223,7 @@
1045
1223
  DossierDetailComponent.decorators = [
1046
1224
  { type: i0.Component, args: [{
1047
1225
  selector: 'valtimo-dossier-detail',
1048
- 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-5\">\n {{ documentDefinitionNameTitle }}\n <div class=\"btn-group mt-m3px mb-3 float-right\">\n <valtimo-extension\n module=\"dossier\"\n page=\"dossier-detail\"\n section=\"card-header\"\n ></valtimo-extension>\n <div class=\"dropdown\">\n <button class=\"btn btn-primary dropdown-toggle\" type=\"button\"\n id=\"startProcessDropdown\" placement=\"bottom\"\n [ngbTooltip]=\"processDocumentDefinitions.length === 0 ? 'No action' : null\"\n [disabled]=\"processDocumentDefinitions.length === 0\"\n data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\">\n <span>Start</span>\n <i class=\"pl-2 fas fa-caret-down\"></i>\n </button>\n <div class=\"dropdown-menu dropdown-menu-right\" aria-labelledby=\"startProcessDropdown\">\n <button *ngFor=\"let processDocumentDefinition of processDocumentDefinitions\" class=\"dropdown-item p\"\n href=\"#\"\n (click)=\"startProcess(processDocumentDefinition)\">{{processDocumentDefinition.processName}}</button>\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 id=\"{{ tab.name }}-tab\" class=\"nav-link clickable\"\n [ngClass]=\"{'active' : tab.isActive()}\"\n data-toggle=\"tab\"\n (click)=\"tabLoader.load(tab)\">\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 (formSubmit)=\"tabLoader.refreshView()\"\n #supportingProcessStartModal></valtimo-dossier-supporting-process-start-modal>\n </div>\n</div>\n",
1226
+ 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-5\">\n {{ documentDefinitionNameTitle }}\n <div class=\"btn-group mt-m3px mb-3 float-right\">\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=\"pl-2 fas fa-caret-down\"></i>\n </button>\n <div class=\"dropdown-menu dropdown-menu-right\" aria-labelledby=\"startProcessDropdown\">\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 <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",
1049
1227
  styles: [".tab-container{min-height:300px}"]
1050
1228
  },] }
1051
1229
  ];
@@ -1064,53 +1242,79 @@
1064
1242
  supportingProcessStart: [{ type: i0.ViewChild, args: ['supportingProcessStartModal',] }]
1065
1243
  };
1066
1244
 
1067
- /*
1068
- * Copyright 2015-2021 Ritense BV, the Netherlands.
1069
- *
1070
- * Licensed under EUPL, Version 1.2 (the "License");
1071
- * you may not use this file except in compliance with the License.
1072
- * You may obtain a copy of the License at
1073
- *
1074
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
1075
- *
1076
- * Unless required by applicable law or agreed to in writing, software
1077
- * distributed under the License is distributed on an "AS IS" basis,
1078
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1079
- * See the License for the specific language governing permissions and
1080
- * limitations under the License.
1081
- */
1082
1245
  var moment$3 = moment_;
1083
1246
  moment$3.locale(localStorage.getItem('langKey') || '');
1084
1247
  var DossierDetailTabContactMomentsComponent = /** @class */ (function () {
1085
- function DossierDetailTabContactMomentsComponent(contactMomentService) {
1248
+ function DossierDetailTabContactMomentsComponent(contactMomentService, alertService, translateService) {
1249
+ var _this = this;
1086
1250
  this.contactMomentService = contactMomentService;
1087
- this.contactMoments = [];
1251
+ this.alertService = alertService;
1252
+ this.translateService = translateService;
1253
+ this.refetchContactMoments$ = new rxjs.BehaviorSubject('');
1254
+ this.contactMoments$ = this.refetchContactMoments$.pipe(operators.switchMap(function () { return _this.contactMomentService.getContactMoments(); }), operators.map(function (contactMoments) { return contactMoments.map(function (contactMoment) {
1255
+ var registratieDatum = moment$3(contactMoment.registratiedatum);
1256
+ return new components.TimelineItemImpl(registratieDatum.format('DD MMM YYYY'), registratieDatum.format('HH:mm'), contactMoment.medewerkerIdentificatie.achternaam, contactMoment.kanaal, contactMoment.tekst, null);
1257
+ }); }));
1258
+ this.text$ = new rxjs.BehaviorSubject('');
1259
+ this.channel$ = new rxjs.BehaviorSubject('MAIL');
1260
+ this.requestData$ = rxjs.combineLatest([this.text$, this.channel$]);
1261
+ this.valid$ = this.requestData$.pipe(operators.map(function (_a) {
1262
+ var _b = __read(_a, 2), text = _b[0], channel = _b[1];
1263
+ return !!(text && channel);
1264
+ }));
1265
+ this.disabled$ = new rxjs.BehaviorSubject(false);
1088
1266
  }
1089
- DossierDetailTabContactMomentsComponent.prototype.ngOnInit = function () {
1090
- this.loadContactMoments();
1267
+ DossierDetailTabContactMomentsComponent.prototype.textChange = function (text) {
1268
+ this.text$.next(text);
1091
1269
  };
1092
- DossierDetailTabContactMomentsComponent.prototype.loadContactMoments = function () {
1093
- var _this = this;
1094
- this.contactMomentService.getContactMoments().subscribe(function (contactMoments) { return _this.handleContactMomentsResult(contactMoments); });
1270
+ DossierDetailTabContactMomentsComponent.prototype.buttonClick = function () {
1271
+ this.modal.show();
1095
1272
  };
1096
- DossierDetailTabContactMomentsComponent.prototype.handleContactMomentsResult = function (contactMoments) {
1097
- this.contactMoments = contactMoments.map(function (contactMoment) {
1098
- var registratieDatum = moment$3(contactMoment.registratiedatum);
1099
- return new contract.TimelineItemImpl(registratieDatum.format('DD MMM YYYY'), registratieDatum.format('HH:mm'), contactMoment.medewerkerIdentificatie.achternaam, contactMoment.kanaal, contactMoment.tekst, null);
1273
+ DossierDetailTabContactMomentsComponent.prototype.saveNote = function () {
1274
+ var _this = this;
1275
+ this.disable();
1276
+ this.requestData$.pipe(operators.take(1)).subscribe(function (_a) {
1277
+ var _b = __read(_a, 2), text = _b[0], channel = _b[1];
1278
+ _this.contactMomentService.saveContactMoment({ kanaal: channel, tekst: text }).subscribe(function () {
1279
+ _this.alertService.success(_this.translateService.instant('dossier.contactMoments.saveSuccess'));
1280
+ _this.enable();
1281
+ _this.clear();
1282
+ _this.modal.hide();
1283
+ _this.refetchContactMoments();
1284
+ }, function () {
1285
+ _this.enable();
1286
+ });
1100
1287
  });
1101
1288
  };
1289
+ DossierDetailTabContactMomentsComponent.prototype.disable = function () {
1290
+ this.disabled$.next(true);
1291
+ };
1292
+ DossierDetailTabContactMomentsComponent.prototype.enable = function () {
1293
+ this.disabled$.next(false);
1294
+ };
1295
+ DossierDetailTabContactMomentsComponent.prototype.clear = function () {
1296
+ this.text$.next('');
1297
+ };
1298
+ DossierDetailTabContactMomentsComponent.prototype.refetchContactMoments = function () {
1299
+ this.refetchContactMoments$.next('');
1300
+ };
1102
1301
  return DossierDetailTabContactMomentsComponent;
1103
1302
  }());
1104
1303
  DossierDetailTabContactMomentsComponent.decorators = [
1105
1304
  { type: i0.Component, args: [{
1106
1305
  selector: 'valtimo-dossier-detail-tab-contact-moments',
1107
- 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 *ngIf=\"contactMoments\">\n <valtimo-timeline [items]=\"contactMoments\"></valtimo-timeline>\n</div>\n\n",
1108
- 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 */"]
1306
+ 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",
1307
+ 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}"]
1109
1308
  },] }
1110
1309
  ];
1111
1310
  DossierDetailTabContactMomentsComponent.ctorParameters = function () { return [
1112
- { type: contactMoment.ContactMomentService }
1311
+ { type: contactMoment.ContactMomentService },
1312
+ { type: components.AlertService },
1313
+ { type: core.TranslateService }
1113
1314
  ]; };
1315
+ DossierDetailTabContactMomentsComponent.propDecorators = {
1316
+ modal: [{ type: i0.ViewChild, args: ['contactMomentsNoteModal',] }]
1317
+ };
1114
1318
 
1115
1319
  /*
1116
1320
  * Copyright 2015-2020 Ritense BV, the Netherlands.
@@ -1170,7 +1374,7 @@
1170
1374
  _this.task.task.created = moment$4(_this.task.task.created).format('DD MMM YYYY HH:mm');
1171
1375
  _this.page = {
1172
1376
  title: _this.task.task.name,
1173
- subtitle: "Created " + moment$4(_this.task.task.created).fromNow()
1377
+ subtitle: "Created " + moment$4(_this.task.task.created).fromNow(),
1174
1378
  };
1175
1379
  });
1176
1380
  };
@@ -1185,7 +1389,7 @@
1185
1389
  var document = {
1186
1390
  documentId: this.document.id,
1187
1391
  content: this.document.content,
1188
- versionBasedOn: this.document.version
1392
+ versionBasedOn: this.document.version,
1189
1393
  };
1190
1394
  this.documentService.modifyDocument(document).subscribe(function (result) {
1191
1395
  _this.document = result.document;
@@ -1201,9 +1405,9 @@
1201
1405
  request: {
1202
1406
  documentId: this.document.id,
1203
1407
  content: mergedData,
1204
- versionBasedOn: this.document.version
1408
+ versionBasedOn: this.document.version,
1205
1409
  },
1206
- taskId: this.task.task.id
1410
+ taskId: this.task.task.id,
1207
1411
  };
1208
1412
  this.documentService.modifyDocumentAndCompleteTask(documentData).subscribe(function (result) {
1209
1413
  _this.toastr.success(_this.task.task.name + ' has successfully been completed');
@@ -1218,7 +1422,7 @@
1218
1422
  DossierUpdateComponent.decorators = [
1219
1423
  { type: i0.Component, args: [{
1220
1424
  selector: 'valtimo-dossier-update',
1221
- 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\n <!--view with custom definitions-->\n <div *ngIf=\"this.customDefinitions\">\n <div class=\"mb-4\" *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 class=\"btn btn-space btn-default float-left\" type=\"button\" (click)=\"back()\" id=\"back-button\">Back</button>\n <button class=\"btn btn-space btn-secondary\" type=\"button\" (click)=\"reset()\" id=\"reset-button\">Reset</button>\n <button class=\"btn btn-space btn-primary\" type=\"button\" (click)=\"save()\" id=\"save-button\">Save</button>\n <button class=\"btn btn-space btn-primary\" type=\"submit\" (click)=\"submit({})\" id=\"submit-button\">Submit</button>\n </div>\n </div>\n </div>\n </div>\n\n <valtimo-camunda-form *ngIf=\"task?.formFields && !this.customDefinitions\"\n (submitted)=\"submit($event)\"\n [formFields]=\"task.formFields\"\n [componentName]=\"task.formLocation\"></valtimo-camunda-form>\n\n </div>\n </valtimo-widget>\n </div>\n </div>\n</div>\n",
1425
+ 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",
1222
1426
  styles: [""]
1223
1427
  },] }
1224
1428
  ];
@@ -1246,26 +1450,30 @@
1246
1450
  * See the License for the specific language governing permissions and
1247
1451
  * limitations under the License.
1248
1452
  */
1249
- var ɵ0 = { title: 'Dossiers', roles: [contract.ROLE_USER] }, ɵ1 = { title: 'Dossiers', parentPath: 'dossiers/:documentDefinitionName', roles: [contract.ROLE_USER] }, ɵ2 = { title: 'Task details', parentPath: 'dossiers/:documentDefinitionName/document/:documentId/:tab', roles: [contract.ROLE_USER] };
1453
+ var ɵ0 = { title: 'Dossiers', roles: [i1.ROLE_USER] }, ɵ1 = { title: 'Dossiers', parentPath: 'dossiers/:documentDefinitionName', roles: [i1.ROLE_USER] }, ɵ2 = {
1454
+ title: 'Task details',
1455
+ parentPath: 'dossiers/:documentDefinitionName/document/:documentId/:tab',
1456
+ roles: [i1.ROLE_USER],
1457
+ };
1250
1458
  var routes = [
1251
1459
  {
1252
1460
  path: 'dossiers/:documentDefinitionName',
1253
1461
  component: DossierListComponent,
1254
1462
  canActivate: [security.AuthGuardService],
1255
- data: ɵ0
1463
+ data: ɵ0,
1256
1464
  },
1257
1465
  {
1258
1466
  path: 'dossiers/:documentDefinitionName/document/:documentId/:tab',
1259
1467
  component: DossierDetailComponent,
1260
1468
  canActivate: [security.AuthGuardService],
1261
- data: ɵ1
1469
+ data: ɵ1,
1262
1470
  },
1263
1471
  {
1264
1472
  path: 'dossiers/:documentDefinitionName/document/:documentId/:tab/tasks/:taskId',
1265
1473
  component: DossierUpdateComponent,
1266
1474
  canActivate: [security.AuthGuardService],
1267
- data: ɵ2
1268
- }
1475
+ data: ɵ2,
1476
+ },
1269
1477
  ];
1270
1478
  var DossierRoutingModule = /** @class */ (function () {
1271
1479
  function DossierRoutingModule() {
@@ -1274,11 +1482,8 @@
1274
1482
  }());
1275
1483
  DossierRoutingModule.decorators = [
1276
1484
  { type: i0.NgModule, args: [{
1277
- imports: [
1278
- common.CommonModule,
1279
- router.RouterModule.forChild(routes),
1280
- ],
1281
- exports: [router.RouterModule]
1485
+ imports: [common.CommonModule, router.RouterModule.forChild(routes)],
1486
+ exports: [router.RouterModule],
1282
1487
  },] }
1283
1488
  ];
1284
1489
 
@@ -1313,7 +1518,8 @@
1313
1518
  DossierProcessStartModalComponent.prototype.loadFormDefinition = function () {
1314
1519
  var _this = this;
1315
1520
  this.formDefinition = null;
1316
- this.formLinkService.getStartEventFormDefinitionByProcessDefinitionKey(this.processDefinitionKey)
1521
+ this.formLinkService
1522
+ .getStartEventFormDefinitionByProcessDefinitionKey(this.processDefinitionKey)
1317
1523
  .subscribe(function (formDefinition) {
1318
1524
  _this.formAssociation = formDefinition.formAssociation;
1319
1525
  var className = _this.formAssociation.formLink.className.split('.');
@@ -1352,7 +1558,7 @@
1352
1558
  this.processDefinitionKey = processDocumentDefinition.id.processDefinitionKey;
1353
1559
  this.documentDefinitionName = processDocumentDefinition.id.documentDefinitionId.name;
1354
1560
  this.processName = processDocumentDefinition.processName;
1355
- this.options = new contract.FormioOptionsImpl();
1561
+ this.options = new components.FormioOptionsImpl();
1356
1562
  this.options.disableAlerts = true;
1357
1563
  var formioBeforeSubmit = function (submission, callback) {
1358
1564
  callback(null, submission);
@@ -1363,9 +1569,17 @@
1363
1569
  DossierProcessStartModalComponent.prototype.onSubmit = function (submission) {
1364
1570
  var _this = this;
1365
1571
  this.formioSubmission = submission;
1366
- this.formLinkService.onSubmit(this.processDefinitionKey, this.formAssociation.formLink.id, submission.data).subscribe(function (formSubmissionResult) {
1572
+ this.formLinkService
1573
+ .onSubmit(this.processDefinitionKey, this.formAssociation.formLink.id, submission.data)
1574
+ .subscribe(function (formSubmissionResult) {
1367
1575
  _this.modal.hide();
1368
- _this.router.navigate(['dossiers', _this.documentDefinitionName, 'document', formSubmissionResult.documentId, 'summary']);
1576
+ _this.router.navigate([
1577
+ 'dossiers',
1578
+ _this.documentDefinitionName,
1579
+ 'document',
1580
+ formSubmissionResult.documentId,
1581
+ 'summary',
1582
+ ]);
1369
1583
  }, function (errors) {
1370
1584
  _this.form.showErrors(errors);
1371
1585
  });
@@ -1384,7 +1598,7 @@
1384
1598
  DossierProcessStartModalComponent.decorators = [
1385
1599
  { type: i0.Component, args: [{
1386
1600
  selector: 'valtimo-dossier-process-start-modal',
1387
- 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\"\n [options]=\"options\"\n (submit)=\"onSubmit($event)\">\n </valtimo-form-io>\n </div>\n <div body *ngIf=\"!formDefinition && isAdmin\">\n <div class=\"bg-warning text-black mb-0 p-3 text-center\" [translate]=\"'formManagement.noFormDefinitionFoundAdmin'\">\n </div>\n <div class=\"mb-0 mt-4 p-3 text-center\">\n <button class=\"btn btn-secondary btn-space\" type=\"button\"\n (click)=\"gotoFormLinkScreen();\"\n id=\"form-link-button\">{{'formManagement.gotoFormLinksButton' | translate}}\n </button>\n </div>\n </div>\n <div body *ngIf=\"!formDefinition && !isAdmin\">\n <div class=\"bg-warning text-black mb-0 p-3 text-center\" [translate]=\"'formManagement.noFormDefinitionFoundUser'\">\n </div>\n </div>\n</valtimo-modal>\n",
1601
+ 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",
1388
1602
  encapsulation: i0.ViewEncapsulation.None,
1389
1603
  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}"]
1390
1604
  },] }
@@ -1431,7 +1645,8 @@
1431
1645
  DossierSupportingProcessStartModalComponent.prototype.loadFormDefinition = function () {
1432
1646
  var _this = this;
1433
1647
  this.formDefinition = null;
1434
- this.formLinkService.getStartEventFormDefinitionByProcessDefinitionKey(this.processDefinitionKey)
1648
+ this.formLinkService
1649
+ .getStartEventFormDefinitionByProcessDefinitionKey(this.processDefinitionKey)
1435
1650
  .subscribe(function (formDefinition) {
1436
1651
  _this.formAssociation = formDefinition.formAssociation;
1437
1652
  var className = _this.formAssociation.formLink.className.split('.');
@@ -1441,7 +1656,7 @@
1441
1656
  _this.formDefinition = formDefinition;
1442
1657
  _this.documentService.getDocument(_this.documentId).subscribe(function (document) {
1443
1658
  _this.submission = {
1444
- data: document.content
1659
+ data: document.content,
1445
1660
  };
1446
1661
  }, function () { return rxjs.noop(); });
1447
1662
  _this.modal.show();
@@ -1451,7 +1666,12 @@
1451
1666
  window.open(url, '_blank');
1452
1667
  break;
1453
1668
  case 'BpmnElementAngularStateUrlLink':
1454
- _this.router.navigate([formDefinition.formAssociation.formLink.url]);
1669
+ _this.route.params.pipe(operators.take(1)).subscribe(function (params) {
1670
+ var documentId = params === null || params === void 0 ? void 0 : params.documentId;
1671
+ _this.router.navigate([formDefinition.formAssociation.formLink.url], {
1672
+ state: Object.assign({}, (documentId && { documentId: documentId })),
1673
+ });
1674
+ });
1455
1675
  break;
1456
1676
  default:
1457
1677
  _this.logger.fatal('Unsupported class name');
@@ -1472,7 +1692,7 @@
1472
1692
  this.documentDefinitionName = processDocumentDefinition.id.documentDefinitionId.name;
1473
1693
  this.processDefinitionKey = processDocumentDefinition.id.processDefinitionKey;
1474
1694
  this.processName = processDocumentDefinition.processName;
1475
- this.options = new contract.FormioOptionsImpl();
1695
+ this.options = new components.FormioOptionsImpl();
1476
1696
  this.options.disableAlerts = true;
1477
1697
  var formioBeforeSubmit = function (submission, callback) {
1478
1698
  callback(null, submission);
@@ -1483,7 +1703,9 @@
1483
1703
  DossierSupportingProcessStartModalComponent.prototype.onSubmit = function (submission) {
1484
1704
  var _this = this;
1485
1705
  this.formioSubmission = submission;
1486
- this.formLinkService.onSubmit(this.processDefinitionKey, this.formAssociation.formLink.id, submission.data, this.documentId).subscribe(function (formSubmissionResult) {
1706
+ this.formLinkService
1707
+ .onSubmit(this.processDefinitionKey, this.formAssociation.formLink.id, submission.data, this.documentId)
1708
+ .subscribe(function (formSubmissionResult) {
1487
1709
  _this.modal.hide();
1488
1710
  _this.formSubmit.emit();
1489
1711
  }, function (errors) {
@@ -1499,7 +1721,7 @@
1499
1721
  DossierSupportingProcessStartModalComponent.decorators = [
1500
1722
  { type: i0.Component, args: [{
1501
1723
  selector: 'valtimo-dossier-supporting-process-start-modal',
1502
- 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 #supportingProcessStartModal elementId=\"supportingProcessStartModal\" [title]=\"modalTitle\">\n <div body *ngIf=\"formDefinition\">\n <valtimo-form-io #form\n [submission]=\"submission\"\n [form]=\"formDefinition\"\n [options]=\"options\"\n (submit)=\"onSubmit($event)\">\n </valtimo-form-io>\n </div>\n <div body *ngIf=\"!formDefinition\">\n <div class=\"bg-warning text-black mb-0 p-3 text-center\" [translate]=\"'formManagement.noFormDefinitionFound'\">\n </div>\n <div class=\"mb-0 mt-4 p-3 text-center\">\n <button class=\"btn btn-secondary btn-space\" type=\"button\"\n (click)=\"gotoFormLinkScreen();\"\n id=\"form-link-button\">{{'formManagement.gotoFormLinksButton' | translate}}\n </button>\n </div>\n </div>\n</valtimo-modal>\n",
1724
+ 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",
1503
1725
  encapsulation: i0.ViewEncapsulation.None,
1504
1726
  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}"]
1505
1727
  },] }
@@ -1533,7 +1755,7 @@
1533
1755
  * See the License for the specific language governing permissions and
1534
1756
  * limitations under the License.
1535
1757
  */
1536
- var ɵ0$1 = contract.HttpLoaderFactory;
1758
+ var ɵ0$1 = i1.HttpLoaderFactory;
1537
1759
  var DossierModule = /** @class */ (function () {
1538
1760
  function DossierModule() {
1539
1761
  }
@@ -1545,14 +1767,14 @@
1545
1767
  TabService,
1546
1768
  {
1547
1769
  provide: TAB_MAP,
1548
- useFactory: tabsFactory
1770
+ useFactory: tabsFactory,
1549
1771
  },
1550
1772
  {
1551
1773
  provide: i0.ANALYZE_FOR_ENTRY_COMPONENTS,
1552
1774
  useValue: Array.from(tabsFactory().values()),
1553
- multi: true
1554
- }
1555
- ]
1775
+ multi: true,
1776
+ },
1777
+ ],
1556
1778
  };
1557
1779
  };
1558
1780
  return DossierModule;
@@ -1569,7 +1791,7 @@
1569
1791
  DossierDetailTabContactMomentsComponent,
1570
1792
  DossierUpdateComponent,
1571
1793
  DossierProcessStartModalComponent,
1572
- DossierSupportingProcessStartModalComponent
1794
+ DossierSupportingProcessStartModalComponent,
1573
1795
  ],
1574
1796
  imports: [
1575
1797
  common.CommonModule,
@@ -1592,8 +1814,8 @@
1592
1814
  loader: {
1593
1815
  provide: core.TranslateLoader,
1594
1816
  useFactory: ɵ0$1,
1595
- deps: [http.HttpClient]
1596
- }
1817
+ deps: [http.HttpClient],
1818
+ },
1597
1819
  }),
1598
1820
  task.TaskModule,
1599
1821
  components.ModalModule,
@@ -1601,19 +1823,16 @@
1601
1823
  components.UploaderModule,
1602
1824
  components.DropzoneModule,
1603
1825
  ngBootstrap.NgbPaginationModule,
1604
- i1.ConfigModule
1605
- ],
1606
- exports: [
1607
- DossierListComponent,
1608
- DossierDetailComponent
1826
+ i1.ConfigModule,
1609
1827
  ],
1828
+ exports: [DossierListComponent, DossierDetailComponent],
1610
1829
  entryComponents: [
1611
1830
  DossierDetailTabSummaryComponent,
1612
1831
  DossierDetailTabProgressComponent,
1613
1832
  DossierDetailTabAuditComponent,
1614
1833
  DossierDetailTabDocumentsComponent,
1615
- DossierDetailTabContactMomentsComponent
1616
- ]
1834
+ DossierDetailTabContactMomentsComponent,
1835
+ ],
1617
1836
  },] }
1618
1837
  ];
1619
1838
 
@@ -1648,6 +1867,8 @@
1648
1867
  exports.DossierModule = DossierModule;
1649
1868
  exports.DossierService = DossierService;
1650
1869
  exports.TAB_MAP = TAB_MAP;
1870
+ exports.TabImpl = TabImpl;
1871
+ exports.TabLoaderImpl = TabLoaderImpl;
1651
1872
  exports.TabService = TabService;
1652
1873
  exports.ɵ0 = ɵ0$1;
1653
1874
  exports.ɵa = DossierUpdateComponent;