@valtimo/dossier 4.15.2 → 4.16.0-next-main.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/valtimo-dossier.umd.js +413 -123
- package/bundles/valtimo-dossier.umd.js.map +1 -1
- package/bundles/valtimo-dossier.umd.min.js +1 -15
- package/bundles/valtimo-dossier.umd.min.js.map +1 -1
- package/esm2015/lib/dossier-detail/dossier-detail.component.js +16 -11
- package/esm2015/lib/dossier-detail/tab/audit/audit.component.js +21 -6
- package/esm2015/lib/dossier-detail/tab/contact-moments/contact-moments.component.js +90 -0
- package/esm2015/lib/dossier-detail/tab/documents/documents.component.js +42 -21
- package/esm2015/lib/dossier-detail/tab/progress/progress.component.js +5 -3
- package/esm2015/lib/dossier-detail/tab/summary/summary.component.js +7 -5
- package/esm2015/lib/dossier-detail-tab-enum.js +2 -1
- package/esm2015/lib/dossier-list/dossier-list.component.js +12 -8
- package/esm2015/lib/dossier-process-start-modal/dossier-process-start-modal.component.js +16 -8
- package/esm2015/lib/dossier-routing.module.js +13 -12
- package/esm2015/lib/dossier-supporting-process-start-modal/dossier-supporting-process-start-modal.component.js +16 -8
- package/esm2015/lib/dossier-update/dossier-update.component.js +6 -6
- package/esm2015/lib/dossier.config.js +2 -2
- package/esm2015/lib/dossier.module.js +21 -17
- package/esm2015/lib/dossier.service.js +6 -3
- package/esm2015/lib/models/index.js +19 -0
- package/esm2015/lib/models/tabs.model.js +104 -0
- package/esm2015/lib/tab.service.js +3 -3
- package/esm2015/public_api.js +3 -1
- package/esm2015/valtimo-dossier.js +1 -1
- package/fesm2015/valtimo-dossier.js +365 -91
- package/fesm2015/valtimo-dossier.js.map +1 -1
- package/lib/dossier-detail/dossier-detail.component.d.ts +2 -2
- package/lib/dossier-detail/tab/audit/audit.component.d.ts +8 -2
- package/lib/dossier-detail/tab/contact-moments/contact-moments.component.d.ts +26 -0
- package/lib/dossier-detail/tab/documents/documents.component.d.ts +11 -6
- package/lib/dossier-detail/tab/progress/progress.component.d.ts +1 -1
- package/lib/dossier-detail/tab/summary/summary.component.d.ts +3 -3
- package/lib/dossier-detail-tab-enum.d.ts +2 -1
- package/lib/dossier-list/dossier-list.component.d.ts +1 -2
- package/lib/dossier-process-start-modal/dossier-process-start-modal.component.d.ts +2 -3
- package/lib/dossier-supporting-process-start-modal/dossier-supporting-process-start-modal.component.d.ts +2 -3
- package/lib/dossier.service.d.ts +2 -2
- package/lib/models/index.d.ts +1 -0
- package/lib/models/tabs.model.d.ts +50 -0
- package/lib/tab.service.d.ts +1 -1
- package/package.json +1 -4
- package/public_api.d.ts +2 -0
- 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('@
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@valtimo/dossier', ['exports', '@angular/core', '@angular/router', '@ngx-translate/core', '@valtimo/document', 'moment', 'rxjs', '@valtimo/config', '@
|
|
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.
|
|
5
|
-
}(this, (function (exports, i0, router, core, document, moment_, rxjs, i1,
|
|
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,
|
|
295
|
-
if (!
|
|
296
|
-
throw new TypeError("
|
|
297
|
-
|
|
298
|
-
|
|
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,
|
|
301
|
-
if (
|
|
302
|
-
throw new TypeError("
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
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
|
/*
|
|
@@ -325,6 +482,7 @@
|
|
|
325
482
|
DefaultTabs["progress"] = "progress";
|
|
326
483
|
DefaultTabs["audit"] = "audit";
|
|
327
484
|
DefaultTabs["documents"] = "documents";
|
|
485
|
+
DefaultTabs["contactMoments"] = "contact-moments";
|
|
328
486
|
})(exports.DefaultTabs || (exports.DefaultTabs = {}));
|
|
329
487
|
|
|
330
488
|
/*
|
|
@@ -359,7 +517,10 @@
|
|
|
359
517
|
var defaultColumn = columns.find(function (column) { return column.default; });
|
|
360
518
|
return {
|
|
361
519
|
isSorting: false,
|
|
362
|
-
state: {
|
|
520
|
+
state: {
|
|
521
|
+
name: defaultColumn ? defaultColumn.propertyName : columns[0].propertyName,
|
|
522
|
+
direction: 'DESC',
|
|
523
|
+
},
|
|
363
524
|
};
|
|
364
525
|
};
|
|
365
526
|
return DossierService;
|
|
@@ -367,7 +528,7 @@
|
|
|
367
528
|
DossierService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DossierService_Factory() { return new DossierService(i0.ɵɵinject(i1.ConfigService)); }, token: DossierService, providedIn: "root" });
|
|
368
529
|
DossierService.decorators = [
|
|
369
530
|
{ type: i0.Injectable, args: [{
|
|
370
|
-
providedIn: 'root'
|
|
531
|
+
providedIn: 'root',
|
|
371
532
|
},] }
|
|
372
533
|
];
|
|
373
534
|
DossierService.ctorParameters = function () { return [
|
|
@@ -409,7 +570,7 @@
|
|
|
409
570
|
page: 1,
|
|
410
571
|
size: 10,
|
|
411
572
|
maxPaginationItemSize: 5,
|
|
412
|
-
sort: undefined
|
|
573
|
+
sort: undefined,
|
|
413
574
|
};
|
|
414
575
|
this.selectedProcessDocumentDefinition = null;
|
|
415
576
|
this.modalListenerAdded = false;
|
|
@@ -484,8 +645,8 @@
|
|
|
484
645
|
_this.processDefinitionListFields = [
|
|
485
646
|
{
|
|
486
647
|
key: 'processName',
|
|
487
|
-
label: 'Proces'
|
|
488
|
-
}
|
|
648
|
+
label: 'Proces',
|
|
649
|
+
},
|
|
489
650
|
];
|
|
490
651
|
});
|
|
491
652
|
};
|
|
@@ -494,7 +655,9 @@
|
|
|
494
655
|
return new document.DocumentSearchRequestImpl(json.definitionName, this.pagination.page - 1, this.pagination.size, json.sequence, json.createdBy, json.globalSearchFilter, json.sort);
|
|
495
656
|
};
|
|
496
657
|
DossierListComponent.prototype.buildDocumentSearchRequest = function () {
|
|
497
|
-
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
|
|
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);
|
|
498
661
|
};
|
|
499
662
|
DossierListComponent.prototype.storeSearch = function (documentSearchRequest) {
|
|
500
663
|
localStorage.setItem(this.getCachedKey(), JSON.stringify(documentSearchRequest));
|
|
@@ -509,7 +672,9 @@
|
|
|
509
672
|
return 'list-search-' + this.documentDefinitionName;
|
|
510
673
|
};
|
|
511
674
|
DossierListComponent.prototype.rowClick = function (document) {
|
|
512
|
-
this.router.navigate([
|
|
675
|
+
this.router.navigate([
|
|
676
|
+
"/dossiers/" + this.documentDefinitionName + "/document/" + document.id + "/" + exports.DefaultTabs.summary,
|
|
677
|
+
]);
|
|
513
678
|
};
|
|
514
679
|
DossierListComponent.prototype.startDossier = function () {
|
|
515
680
|
if (this.processDocumentDefinitions.length > 1) {
|
|
@@ -567,7 +732,7 @@
|
|
|
567
732
|
DossierListComponent.decorators = [
|
|
568
733
|
{ type: i0.Component, args: [{
|
|
569
734
|
selector: 'valtimo-dossier-list',
|
|
570
|
-
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\"
|
|
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\">×</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",
|
|
571
736
|
styles: [""]
|
|
572
737
|
},] }
|
|
573
738
|
];
|
|
@@ -603,7 +768,7 @@
|
|
|
603
768
|
this.snapshot = this.route.snapshot.paramMap;
|
|
604
769
|
this.documentDefinitionName = this.snapshot.get('documentDefinitionName') || '';
|
|
605
770
|
this.documentId = this.snapshot.get('documentId') || '';
|
|
606
|
-
this.options = new
|
|
771
|
+
this.options = new components.FormioOptionsImpl();
|
|
607
772
|
this.options.disableAlerts = true;
|
|
608
773
|
}
|
|
609
774
|
DossierDetailTabSummaryComponent.prototype.ngOnInit = function () {
|
|
@@ -628,7 +793,9 @@
|
|
|
628
793
|
};
|
|
629
794
|
DossierDetailTabSummaryComponent.prototype.loadProcessDocumentInstances = function (documentId) {
|
|
630
795
|
var _this = this;
|
|
631
|
-
this.documentService
|
|
796
|
+
this.documentService
|
|
797
|
+
.findProcessDocumentInstances(documentId)
|
|
798
|
+
.subscribe(function (processDocumentInstances) {
|
|
632
799
|
_this.processDocumentInstances = processDocumentInstances;
|
|
633
800
|
_this.processDocumentInstances.forEach(function (instance) {
|
|
634
801
|
_this.loadProcessInstanceTasks(instance.id.processInstanceId);
|
|
@@ -677,7 +844,7 @@
|
|
|
677
844
|
DossierDetailTabSummaryComponent.decorators = [
|
|
678
845
|
{ type: i0.Component, args: [{
|
|
679
846
|
selector: 'valtimo-dossier-detail-tab-summary',
|
|
680
|
-
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
|
|
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",
|
|
681
848
|
encapsulation: i0.ViewEncapsulation.None,
|
|
682
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}"]
|
|
683
850
|
},] }
|
|
@@ -721,7 +888,9 @@
|
|
|
721
888
|
}
|
|
722
889
|
DossierDetailTabProgressComponent.prototype.ngOnInit = function () {
|
|
723
890
|
var _this = this;
|
|
724
|
-
this.documentService
|
|
891
|
+
this.documentService
|
|
892
|
+
.findProcessDocumentInstances(this.documentId)
|
|
893
|
+
.subscribe(function (processDocumentInstances) {
|
|
725
894
|
_this.processDocumentInstances = processDocumentInstances;
|
|
726
895
|
_this.selectedProcessInstanceId = processDocumentInstances[0].id.processInstanceId;
|
|
727
896
|
});
|
|
@@ -734,7 +903,7 @@
|
|
|
734
903
|
DossierDetailTabProgressComponent.decorators = [
|
|
735
904
|
{ type: i0.Component, args: [{
|
|
736
905
|
selector: 'valtimo-dossier-detail-tab-progress',
|
|
737
|
-
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
|
|
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",
|
|
738
907
|
styles: [".full-height-tab-content{height:calc(100vh - 380px);width:100%}"]
|
|
739
908
|
},] }
|
|
740
909
|
];
|
|
@@ -766,6 +935,8 @@
|
|
|
766
935
|
this.route = route;
|
|
767
936
|
this.documentService = documentService;
|
|
768
937
|
this.spinnerService = spinnerService;
|
|
938
|
+
this.paginationClicked = new i0.EventEmitter();
|
|
939
|
+
this.defaultAuditPage = 0;
|
|
769
940
|
this.spinnerService.show('auditSpinner');
|
|
770
941
|
var snapshot = this.route.snapshot.paramMap;
|
|
771
942
|
this.documentId = snapshot.get('documentId') || '';
|
|
@@ -776,25 +947,35 @@
|
|
|
776
947
|
return 'events.' + eventName;
|
|
777
948
|
};
|
|
778
949
|
DossierDetailTabAuditComponent.prototype.ngOnInit = function () {
|
|
950
|
+
this.loadAuditPage(this.defaultAuditPage);
|
|
951
|
+
};
|
|
952
|
+
DossierDetailTabAuditComponent.prototype.loadAuditPage = function (pageNumber) {
|
|
779
953
|
var _this = this;
|
|
780
|
-
this.documentService.getAuditLog(this.documentId).subscribe(function (page) {
|
|
954
|
+
this.documentService.getAuditLog(this.documentId, pageNumber).subscribe(function (page) {
|
|
781
955
|
var timelineItems = [];
|
|
782
956
|
page.content.forEach(function (auditRecord) {
|
|
783
957
|
var occurredOn = moment$2(auditRecord.metaData.occurredOn);
|
|
784
958
|
var fromNow = occurredOn.fromNow();
|
|
785
|
-
timelineItems.push(new
|
|
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));
|
|
786
960
|
});
|
|
787
961
|
_this.timelineItems = timelineItems;
|
|
788
962
|
_this.spinnerService.hide('auditSpinner');
|
|
963
|
+
_this.pagination = page;
|
|
964
|
+
_this.pagination.number += 1;
|
|
789
965
|
});
|
|
790
966
|
};
|
|
967
|
+
DossierDetailTabAuditComponent.prototype.onChangePagination = function (page) {
|
|
968
|
+
this.paginationClicked.emit(page);
|
|
969
|
+
this.currentAuditPage = page - 1;
|
|
970
|
+
this.loadAuditPage(this.currentAuditPage);
|
|
971
|
+
};
|
|
791
972
|
return DossierDetailTabAuditComponent;
|
|
792
973
|
}());
|
|
793
974
|
DossierDetailTabAuditComponent.decorators = [
|
|
794
975
|
{ type: i0.Component, args: [{
|
|
795
976
|
selector: 'valtimo-dossier-detail-tab-audit',
|
|
796
|
-
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",
|
|
797
|
-
styles: [""]
|
|
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",
|
|
978
|
+
styles: [".audit-pagination{border-top:1px solid #dee2e6;margin:0 -1.923rem -1.923rem!important}"]
|
|
798
979
|
},] }
|
|
799
980
|
];
|
|
800
981
|
DossierDetailTabAuditComponent.ctorParameters = function () { return [
|
|
@@ -802,47 +983,51 @@
|
|
|
802
983
|
{ type: document.DocumentService },
|
|
803
984
|
{ type: ngxSpinner.NgxSpinnerService }
|
|
804
985
|
]; };
|
|
986
|
+
DossierDetailTabAuditComponent.propDecorators = {
|
|
987
|
+
paginationClicked: [{ type: i0.Output }]
|
|
988
|
+
};
|
|
805
989
|
|
|
806
|
-
/*
|
|
807
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
808
|
-
*
|
|
809
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
810
|
-
* you may not use this file except in compliance with the License.
|
|
811
|
-
* You may obtain a copy of the License at
|
|
812
|
-
*
|
|
813
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
814
|
-
*
|
|
815
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
816
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
817
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
818
|
-
* See the License for the specific language governing permissions and
|
|
819
|
-
* limitations under the License.
|
|
820
|
-
*/
|
|
821
990
|
var DossierDetailTabDocumentsComponent = /** @class */ (function () {
|
|
822
|
-
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;
|
|
823
994
|
this.route = route;
|
|
824
995
|
this.documentService = documentService;
|
|
825
996
|
this.toastrService = toastrService;
|
|
826
997
|
this.uploadProviderService = uploadProviderService;
|
|
827
998
|
this.downloadService = downloadService;
|
|
828
|
-
this.
|
|
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
|
+
}));
|
|
829
1014
|
this.fields = [
|
|
830
1015
|
{ key: 'fileName', label: 'File name' },
|
|
831
1016
|
{ key: 'sizeInBytes', label: 'Size in bytes' },
|
|
832
1017
|
{ key: 'createdOn', label: 'Created on', viewType: 'date' },
|
|
833
|
-
{ key: 'createdBy', label: 'Created by' }
|
|
1018
|
+
{ key: 'createdBy', label: 'Created by' },
|
|
834
1019
|
];
|
|
835
1020
|
this.actions = [
|
|
836
1021
|
{
|
|
837
1022
|
columnName: '',
|
|
838
1023
|
iconClass: 'fas fa-external-link-alt',
|
|
839
|
-
callback: this.downloadDocument.bind(this)
|
|
1024
|
+
callback: this.downloadDocument.bind(this),
|
|
840
1025
|
},
|
|
841
1026
|
{
|
|
842
1027
|
columnName: '',
|
|
843
1028
|
iconClass: 'fas fa-trash-alt',
|
|
844
|
-
callback: this.removeRelatedFile.bind(this)
|
|
845
|
-
}
|
|
1029
|
+
callback: this.removeRelatedFile.bind(this),
|
|
1030
|
+
},
|
|
846
1031
|
];
|
|
847
1032
|
this.uploading$ = new rxjs.BehaviorSubject(false);
|
|
848
1033
|
var snapshot = this.route.snapshot.paramMap;
|
|
@@ -850,29 +1035,28 @@
|
|
|
850
1035
|
this.documentDefinitionName = snapshot.get('documentDefinitionName') || '';
|
|
851
1036
|
}
|
|
852
1037
|
DossierDetailTabDocumentsComponent.prototype.ngOnInit = function () {
|
|
853
|
-
this.
|
|
1038
|
+
this.refetchDocuments();
|
|
854
1039
|
};
|
|
855
1040
|
DossierDetailTabDocumentsComponent.prototype.fileSelected = function (file) {
|
|
856
1041
|
var _this = this;
|
|
857
1042
|
this.uploading$.next(true);
|
|
858
|
-
this.uploadProviderService
|
|
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 () {
|
|
859
1047
|
_this.toastrService.success('Successfully uploaded document to dossier');
|
|
860
|
-
_this.
|
|
1048
|
+
_this.refetchDocuments();
|
|
861
1049
|
_this.uploading$.next(false);
|
|
862
1050
|
}, function () {
|
|
863
1051
|
_this.toastrService.error('Failed to upload document to dossier');
|
|
864
1052
|
_this.uploading$.next(false);
|
|
865
1053
|
});
|
|
866
1054
|
};
|
|
867
|
-
DossierDetailTabDocumentsComponent.prototype.loadDocuments = function () {
|
|
868
|
-
var _this = this;
|
|
869
|
-
this.documentService.getDocument(this.documentId).subscribe(function (document) {
|
|
870
|
-
_this.relatedFiles = document.relatedFiles;
|
|
871
|
-
});
|
|
872
|
-
};
|
|
873
1055
|
DossierDetailTabDocumentsComponent.prototype.downloadDocument = function (relatedFile) {
|
|
874
1056
|
var _this = this;
|
|
875
|
-
this.uploadProviderService
|
|
1057
|
+
this.uploadProviderService
|
|
1058
|
+
.getResource(relatedFile.fileId)
|
|
1059
|
+
.subscribe(function (resource) {
|
|
876
1060
|
_this.downloadService.downloadFile(resource.url, resource.resource.name);
|
|
877
1061
|
});
|
|
878
1062
|
};
|
|
@@ -880,17 +1064,20 @@
|
|
|
880
1064
|
var _this = this;
|
|
881
1065
|
this.documentService.removeResource(this.documentId, relatedFile.fileId).subscribe(function () {
|
|
882
1066
|
_this.toastrService.success('Successfully removed document from dossier');
|
|
883
|
-
_this.
|
|
1067
|
+
_this.refetchDocuments();
|
|
884
1068
|
}, function () {
|
|
885
1069
|
_this.toastrService.error('Failed to remove document from dossier');
|
|
886
1070
|
});
|
|
887
1071
|
};
|
|
1072
|
+
DossierDetailTabDocumentsComponent.prototype.refetchDocuments = function () {
|
|
1073
|
+
this.refetch$.next(null);
|
|
1074
|
+
};
|
|
888
1075
|
return DossierDetailTabDocumentsComponent;
|
|
889
1076
|
}());
|
|
890
1077
|
DossierDetailTabDocumentsComponent.decorators = [
|
|
891
1078
|
{ type: i0.Component, args: [{
|
|
892
1079
|
selector: 'valtimo-dossier-detail-tab-documents',
|
|
893
|
-
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]=\"
|
|
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",
|
|
894
1081
|
styles: [""]
|
|
895
1082
|
},] }
|
|
896
1083
|
];
|
|
@@ -899,7 +1086,9 @@
|
|
|
899
1086
|
{ type: document.DocumentService },
|
|
900
1087
|
{ type: ngxToastr.ToastrService },
|
|
901
1088
|
{ type: resource.UploadProviderService },
|
|
902
|
-
{ type: resource.DownloadService }
|
|
1089
|
+
{ type: resource.DownloadService },
|
|
1090
|
+
{ type: core.TranslateService },
|
|
1091
|
+
{ type: i1.ConfigService }
|
|
903
1092
|
]; };
|
|
904
1093
|
|
|
905
1094
|
/*
|
|
@@ -922,7 +1111,7 @@
|
|
|
922
1111
|
[exports.DefaultTabs.summary, DossierDetailTabSummaryComponent],
|
|
923
1112
|
[exports.DefaultTabs.progress, DossierDetailTabProgressComponent],
|
|
924
1113
|
[exports.DefaultTabs.audit, DossierDetailTabAuditComponent],
|
|
925
|
-
[exports.DefaultTabs.documents, DossierDetailTabDocumentsComponent]
|
|
1114
|
+
[exports.DefaultTabs.documents, DossierDetailTabDocumentsComponent],
|
|
926
1115
|
]);
|
|
927
1116
|
|
|
928
1117
|
/*
|
|
@@ -948,7 +1137,7 @@
|
|
|
948
1137
|
this.tabMap = tabMap;
|
|
949
1138
|
var i = 0;
|
|
950
1139
|
this.tabMap.forEach(function (component, name, map) {
|
|
951
|
-
_this.tabs.push(new
|
|
1140
|
+
_this.tabs.push(new TabImpl(name, i, component));
|
|
952
1141
|
i++;
|
|
953
1142
|
});
|
|
954
1143
|
}
|
|
@@ -960,7 +1149,7 @@
|
|
|
960
1149
|
TabService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TabService_Factory() { return new TabService(i0.ɵɵinject(TAB_MAP)); }, token: TabService, providedIn: "root" });
|
|
961
1150
|
TabService.decorators = [
|
|
962
1151
|
{ type: i0.Injectable, args: [{
|
|
963
|
-
providedIn: 'root'
|
|
1152
|
+
providedIn: 'root',
|
|
964
1153
|
},] }
|
|
965
1154
|
];
|
|
966
1155
|
TabService.ctorParameters = function () { return [
|
|
@@ -1002,8 +1191,10 @@
|
|
|
1002
1191
|
}
|
|
1003
1192
|
DossierDetailComponent.prototype.ngOnInit = function () {
|
|
1004
1193
|
var _this = this;
|
|
1005
|
-
this.tabLoader = new
|
|
1006
|
-
this.documentService
|
|
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) {
|
|
1007
1198
|
_this.documentDefinitionNameTitle = definition.schema.title;
|
|
1008
1199
|
});
|
|
1009
1200
|
this.initialTabName = this.snapshot.get('tab');
|
|
@@ -1012,13 +1203,16 @@
|
|
|
1012
1203
|
};
|
|
1013
1204
|
DossierDetailComponent.prototype.getAllAssociatedProcessDefinitions = function () {
|
|
1014
1205
|
var _this = this;
|
|
1015
|
-
this.documentService
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
_this.
|
|
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
|
+
{
|
|
1019
1212
|
key: 'processName',
|
|
1020
|
-
label: 'Proces'
|
|
1021
|
-
}
|
|
1213
|
+
label: 'Proces',
|
|
1214
|
+
},
|
|
1215
|
+
];
|
|
1022
1216
|
});
|
|
1023
1217
|
};
|
|
1024
1218
|
DossierDetailComponent.prototype.startProcess = function (processDocumentDefinition) {
|
|
@@ -1029,7 +1223,7 @@
|
|
|
1029
1223
|
DossierDetailComponent.decorators = [
|
|
1030
1224
|
{ type: i0.Component, args: [{
|
|
1031
1225
|
selector: 'valtimo-dossier-detail',
|
|
1032
|
-
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=\"float-right\">\n <div class=\"dropdown\">\n <button
|
|
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",
|
|
1033
1227
|
styles: [".tab-container{min-height:300px}"]
|
|
1034
1228
|
},] }
|
|
1035
1229
|
];
|
|
@@ -1048,6 +1242,80 @@
|
|
|
1048
1242
|
supportingProcessStart: [{ type: i0.ViewChild, args: ['supportingProcessStartModal',] }]
|
|
1049
1243
|
};
|
|
1050
1244
|
|
|
1245
|
+
var moment$3 = moment_;
|
|
1246
|
+
moment$3.locale(localStorage.getItem('langKey') || '');
|
|
1247
|
+
var DossierDetailTabContactMomentsComponent = /** @class */ (function () {
|
|
1248
|
+
function DossierDetailTabContactMomentsComponent(contactMomentService, alertService, translateService) {
|
|
1249
|
+
var _this = this;
|
|
1250
|
+
this.contactMomentService = contactMomentService;
|
|
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);
|
|
1266
|
+
}
|
|
1267
|
+
DossierDetailTabContactMomentsComponent.prototype.textChange = function (text) {
|
|
1268
|
+
this.text$.next(text);
|
|
1269
|
+
};
|
|
1270
|
+
DossierDetailTabContactMomentsComponent.prototype.buttonClick = function () {
|
|
1271
|
+
this.modal.show();
|
|
1272
|
+
};
|
|
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
|
+
});
|
|
1287
|
+
});
|
|
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
|
+
};
|
|
1301
|
+
return DossierDetailTabContactMomentsComponent;
|
|
1302
|
+
}());
|
|
1303
|
+
DossierDetailTabContactMomentsComponent.decorators = [
|
|
1304
|
+
{ type: i0.Component, args: [{
|
|
1305
|
+
selector: 'valtimo-dossier-detail-tab-contact-moments',
|
|
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 {{ '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}"]
|
|
1308
|
+
},] }
|
|
1309
|
+
];
|
|
1310
|
+
DossierDetailTabContactMomentsComponent.ctorParameters = function () { return [
|
|
1311
|
+
{ type: contactMoment.ContactMomentService },
|
|
1312
|
+
{ type: components.AlertService },
|
|
1313
|
+
{ type: core.TranslateService }
|
|
1314
|
+
]; };
|
|
1315
|
+
DossierDetailTabContactMomentsComponent.propDecorators = {
|
|
1316
|
+
modal: [{ type: i0.ViewChild, args: ['contactMomentsNoteModal',] }]
|
|
1317
|
+
};
|
|
1318
|
+
|
|
1051
1319
|
/*
|
|
1052
1320
|
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
1053
1321
|
*
|
|
@@ -1063,8 +1331,8 @@
|
|
|
1063
1331
|
* See the License for the specific language governing permissions and
|
|
1064
1332
|
* limitations under the License.
|
|
1065
1333
|
*/
|
|
1066
|
-
var moment$
|
|
1067
|
-
moment$
|
|
1334
|
+
var moment$4 = moment_;
|
|
1335
|
+
moment$4.locale(localStorage.getItem('langKey') || '');
|
|
1068
1336
|
var DossierUpdateComponent = /** @class */ (function () {
|
|
1069
1337
|
function DossierUpdateComponent(taskService, documentService, route, toastr, location, dossierService) {
|
|
1070
1338
|
this.taskService = taskService;
|
|
@@ -1103,10 +1371,10 @@
|
|
|
1103
1371
|
var _this = this;
|
|
1104
1372
|
this.taskService.getTask(id).subscribe(function (task) {
|
|
1105
1373
|
_this.task = task;
|
|
1106
|
-
_this.task.task.created = moment$
|
|
1374
|
+
_this.task.task.created = moment$4(_this.task.task.created).format('DD MMM YYYY HH:mm');
|
|
1107
1375
|
_this.page = {
|
|
1108
1376
|
title: _this.task.task.name,
|
|
1109
|
-
subtitle: "Created " + moment$
|
|
1377
|
+
subtitle: "Created " + moment$4(_this.task.task.created).fromNow(),
|
|
1110
1378
|
};
|
|
1111
1379
|
});
|
|
1112
1380
|
};
|
|
@@ -1121,7 +1389,7 @@
|
|
|
1121
1389
|
var document = {
|
|
1122
1390
|
documentId: this.document.id,
|
|
1123
1391
|
content: this.document.content,
|
|
1124
|
-
versionBasedOn: this.document.version
|
|
1392
|
+
versionBasedOn: this.document.version,
|
|
1125
1393
|
};
|
|
1126
1394
|
this.documentService.modifyDocument(document).subscribe(function (result) {
|
|
1127
1395
|
_this.document = result.document;
|
|
@@ -1137,9 +1405,9 @@
|
|
|
1137
1405
|
request: {
|
|
1138
1406
|
documentId: this.document.id,
|
|
1139
1407
|
content: mergedData,
|
|
1140
|
-
versionBasedOn: this.document.version
|
|
1408
|
+
versionBasedOn: this.document.version,
|
|
1141
1409
|
},
|
|
1142
|
-
taskId: this.task.task.id
|
|
1410
|
+
taskId: this.task.task.id,
|
|
1143
1411
|
};
|
|
1144
1412
|
this.documentService.modifyDocumentAndCompleteTask(documentData).subscribe(function (result) {
|
|
1145
1413
|
_this.toastr.success(_this.task.task.name + ' has successfully been completed');
|
|
@@ -1154,7 +1422,7 @@
|
|
|
1154
1422
|
DossierUpdateComponent.decorators = [
|
|
1155
1423
|
{ type: i0.Component, args: [{
|
|
1156
1424
|
selector: 'valtimo-dossier-update',
|
|
1157
|
-
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
|
|
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",
|
|
1158
1426
|
styles: [""]
|
|
1159
1427
|
},] }
|
|
1160
1428
|
];
|
|
@@ -1182,26 +1450,30 @@
|
|
|
1182
1450
|
* See the License for the specific language governing permissions and
|
|
1183
1451
|
* limitations under the License.
|
|
1184
1452
|
*/
|
|
1185
|
-
var ɵ0 = { title: 'Dossiers', roles: [
|
|
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
|
+
};
|
|
1186
1458
|
var routes = [
|
|
1187
1459
|
{
|
|
1188
1460
|
path: 'dossiers/:documentDefinitionName',
|
|
1189
1461
|
component: DossierListComponent,
|
|
1190
1462
|
canActivate: [security.AuthGuardService],
|
|
1191
|
-
data: ɵ0
|
|
1463
|
+
data: ɵ0,
|
|
1192
1464
|
},
|
|
1193
1465
|
{
|
|
1194
1466
|
path: 'dossiers/:documentDefinitionName/document/:documentId/:tab',
|
|
1195
1467
|
component: DossierDetailComponent,
|
|
1196
1468
|
canActivate: [security.AuthGuardService],
|
|
1197
|
-
data: ɵ1
|
|
1469
|
+
data: ɵ1,
|
|
1198
1470
|
},
|
|
1199
1471
|
{
|
|
1200
1472
|
path: 'dossiers/:documentDefinitionName/document/:documentId/:tab/tasks/:taskId',
|
|
1201
1473
|
component: DossierUpdateComponent,
|
|
1202
1474
|
canActivate: [security.AuthGuardService],
|
|
1203
|
-
data: ɵ2
|
|
1204
|
-
}
|
|
1475
|
+
data: ɵ2,
|
|
1476
|
+
},
|
|
1205
1477
|
];
|
|
1206
1478
|
var DossierRoutingModule = /** @class */ (function () {
|
|
1207
1479
|
function DossierRoutingModule() {
|
|
@@ -1210,11 +1482,8 @@
|
|
|
1210
1482
|
}());
|
|
1211
1483
|
DossierRoutingModule.decorators = [
|
|
1212
1484
|
{ type: i0.NgModule, args: [{
|
|
1213
|
-
imports: [
|
|
1214
|
-
|
|
1215
|
-
router.RouterModule.forChild(routes),
|
|
1216
|
-
],
|
|
1217
|
-
exports: [router.RouterModule]
|
|
1485
|
+
imports: [common.CommonModule, router.RouterModule.forChild(routes)],
|
|
1486
|
+
exports: [router.RouterModule],
|
|
1218
1487
|
},] }
|
|
1219
1488
|
];
|
|
1220
1489
|
|
|
@@ -1249,7 +1518,8 @@
|
|
|
1249
1518
|
DossierProcessStartModalComponent.prototype.loadFormDefinition = function () {
|
|
1250
1519
|
var _this = this;
|
|
1251
1520
|
this.formDefinition = null;
|
|
1252
|
-
this.formLinkService
|
|
1521
|
+
this.formLinkService
|
|
1522
|
+
.getStartEventFormDefinitionByProcessDefinitionKey(this.processDefinitionKey)
|
|
1253
1523
|
.subscribe(function (formDefinition) {
|
|
1254
1524
|
_this.formAssociation = formDefinition.formAssociation;
|
|
1255
1525
|
var className = _this.formAssociation.formLink.className.split('.');
|
|
@@ -1288,7 +1558,7 @@
|
|
|
1288
1558
|
this.processDefinitionKey = processDocumentDefinition.id.processDefinitionKey;
|
|
1289
1559
|
this.documentDefinitionName = processDocumentDefinition.id.documentDefinitionId.name;
|
|
1290
1560
|
this.processName = processDocumentDefinition.processName;
|
|
1291
|
-
this.options = new
|
|
1561
|
+
this.options = new components.FormioOptionsImpl();
|
|
1292
1562
|
this.options.disableAlerts = true;
|
|
1293
1563
|
var formioBeforeSubmit = function (submission, callback) {
|
|
1294
1564
|
callback(null, submission);
|
|
@@ -1299,9 +1569,17 @@
|
|
|
1299
1569
|
DossierProcessStartModalComponent.prototype.onSubmit = function (submission) {
|
|
1300
1570
|
var _this = this;
|
|
1301
1571
|
this.formioSubmission = submission;
|
|
1302
|
-
this.formLinkService
|
|
1572
|
+
this.formLinkService
|
|
1573
|
+
.onSubmit(this.processDefinitionKey, this.formAssociation.formLink.id, submission.data)
|
|
1574
|
+
.subscribe(function (formSubmissionResult) {
|
|
1303
1575
|
_this.modal.hide();
|
|
1304
|
-
_this.router.navigate([
|
|
1576
|
+
_this.router.navigate([
|
|
1577
|
+
'dossiers',
|
|
1578
|
+
_this.documentDefinitionName,
|
|
1579
|
+
'document',
|
|
1580
|
+
formSubmissionResult.documentId,
|
|
1581
|
+
'summary',
|
|
1582
|
+
]);
|
|
1305
1583
|
}, function (errors) {
|
|
1306
1584
|
_this.form.showErrors(errors);
|
|
1307
1585
|
});
|
|
@@ -1320,7 +1598,7 @@
|
|
|
1320
1598
|
DossierProcessStartModalComponent.decorators = [
|
|
1321
1599
|
{ type: i0.Component, args: [{
|
|
1322
1600
|
selector: 'valtimo-dossier-process-start-modal',
|
|
1323
|
-
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\"
|
|
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",
|
|
1324
1602
|
encapsulation: i0.ViewEncapsulation.None,
|
|
1325
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}"]
|
|
1326
1604
|
},] }
|
|
@@ -1367,7 +1645,8 @@
|
|
|
1367
1645
|
DossierSupportingProcessStartModalComponent.prototype.loadFormDefinition = function () {
|
|
1368
1646
|
var _this = this;
|
|
1369
1647
|
this.formDefinition = null;
|
|
1370
|
-
this.formLinkService
|
|
1648
|
+
this.formLinkService
|
|
1649
|
+
.getStartEventFormDefinitionByProcessDefinitionKey(this.processDefinitionKey)
|
|
1371
1650
|
.subscribe(function (formDefinition) {
|
|
1372
1651
|
_this.formAssociation = formDefinition.formAssociation;
|
|
1373
1652
|
var className = _this.formAssociation.formLink.className.split('.');
|
|
@@ -1377,7 +1656,7 @@
|
|
|
1377
1656
|
_this.formDefinition = formDefinition;
|
|
1378
1657
|
_this.documentService.getDocument(_this.documentId).subscribe(function (document) {
|
|
1379
1658
|
_this.submission = {
|
|
1380
|
-
data: document.content
|
|
1659
|
+
data: document.content,
|
|
1381
1660
|
};
|
|
1382
1661
|
}, function () { return rxjs.noop(); });
|
|
1383
1662
|
_this.modal.show();
|
|
@@ -1387,7 +1666,12 @@
|
|
|
1387
1666
|
window.open(url, '_blank');
|
|
1388
1667
|
break;
|
|
1389
1668
|
case 'BpmnElementAngularStateUrlLink':
|
|
1390
|
-
_this.
|
|
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
|
+
});
|
|
1391
1675
|
break;
|
|
1392
1676
|
default:
|
|
1393
1677
|
_this.logger.fatal('Unsupported class name');
|
|
@@ -1408,7 +1692,7 @@
|
|
|
1408
1692
|
this.documentDefinitionName = processDocumentDefinition.id.documentDefinitionId.name;
|
|
1409
1693
|
this.processDefinitionKey = processDocumentDefinition.id.processDefinitionKey;
|
|
1410
1694
|
this.processName = processDocumentDefinition.processName;
|
|
1411
|
-
this.options = new
|
|
1695
|
+
this.options = new components.FormioOptionsImpl();
|
|
1412
1696
|
this.options.disableAlerts = true;
|
|
1413
1697
|
var formioBeforeSubmit = function (submission, callback) {
|
|
1414
1698
|
callback(null, submission);
|
|
@@ -1419,7 +1703,9 @@
|
|
|
1419
1703
|
DossierSupportingProcessStartModalComponent.prototype.onSubmit = function (submission) {
|
|
1420
1704
|
var _this = this;
|
|
1421
1705
|
this.formioSubmission = submission;
|
|
1422
|
-
this.formLinkService
|
|
1706
|
+
this.formLinkService
|
|
1707
|
+
.onSubmit(this.processDefinitionKey, this.formAssociation.formLink.id, submission.data, this.documentId)
|
|
1708
|
+
.subscribe(function (formSubmissionResult) {
|
|
1423
1709
|
_this.modal.hide();
|
|
1424
1710
|
_this.formSubmit.emit();
|
|
1425
1711
|
}, function (errors) {
|
|
@@ -1435,7 +1721,7 @@
|
|
|
1435
1721
|
DossierSupportingProcessStartModalComponent.decorators = [
|
|
1436
1722
|
{ type: i0.Component, args: [{
|
|
1437
1723
|
selector: 'valtimo-dossier-supporting-process-start-modal',
|
|
1438
|
-
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
|
|
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",
|
|
1439
1725
|
encapsulation: i0.ViewEncapsulation.None,
|
|
1440
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}"]
|
|
1441
1727
|
},] }
|
|
@@ -1469,7 +1755,7 @@
|
|
|
1469
1755
|
* See the License for the specific language governing permissions and
|
|
1470
1756
|
* limitations under the License.
|
|
1471
1757
|
*/
|
|
1472
|
-
var ɵ0$1 =
|
|
1758
|
+
var ɵ0$1 = i1.HttpLoaderFactory;
|
|
1473
1759
|
var DossierModule = /** @class */ (function () {
|
|
1474
1760
|
function DossierModule() {
|
|
1475
1761
|
}
|
|
@@ -1481,14 +1767,14 @@
|
|
|
1481
1767
|
TabService,
|
|
1482
1768
|
{
|
|
1483
1769
|
provide: TAB_MAP,
|
|
1484
|
-
useFactory: tabsFactory
|
|
1770
|
+
useFactory: tabsFactory,
|
|
1485
1771
|
},
|
|
1486
1772
|
{
|
|
1487
1773
|
provide: i0.ANALYZE_FOR_ENTRY_COMPONENTS,
|
|
1488
1774
|
useValue: Array.from(tabsFactory().values()),
|
|
1489
|
-
multi: true
|
|
1490
|
-
}
|
|
1491
|
-
]
|
|
1775
|
+
multi: true,
|
|
1776
|
+
},
|
|
1777
|
+
],
|
|
1492
1778
|
};
|
|
1493
1779
|
};
|
|
1494
1780
|
return DossierModule;
|
|
@@ -1502,9 +1788,10 @@
|
|
|
1502
1788
|
DossierDetailTabProgressComponent,
|
|
1503
1789
|
DossierDetailTabAuditComponent,
|
|
1504
1790
|
DossierDetailTabDocumentsComponent,
|
|
1791
|
+
DossierDetailTabContactMomentsComponent,
|
|
1505
1792
|
DossierUpdateComponent,
|
|
1506
1793
|
DossierProcessStartModalComponent,
|
|
1507
|
-
DossierSupportingProcessStartModalComponent
|
|
1794
|
+
DossierSupportingProcessStartModalComponent,
|
|
1508
1795
|
],
|
|
1509
1796
|
imports: [
|
|
1510
1797
|
common.CommonModule,
|
|
@@ -1527,25 +1814,25 @@
|
|
|
1527
1814
|
loader: {
|
|
1528
1815
|
provide: core.TranslateLoader,
|
|
1529
1816
|
useFactory: ɵ0$1,
|
|
1530
|
-
deps: [http.HttpClient]
|
|
1531
|
-
}
|
|
1817
|
+
deps: [http.HttpClient],
|
|
1818
|
+
},
|
|
1532
1819
|
}),
|
|
1533
1820
|
task.TaskModule,
|
|
1534
1821
|
components.ModalModule,
|
|
1535
1822
|
ngBootstrap.NgbTooltipModule,
|
|
1536
1823
|
components.UploaderModule,
|
|
1537
|
-
components.DropzoneModule
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
DossierListComponent,
|
|
1541
|
-
DossierDetailComponent
|
|
1824
|
+
components.DropzoneModule,
|
|
1825
|
+
ngBootstrap.NgbPaginationModule,
|
|
1826
|
+
i1.ConfigModule,
|
|
1542
1827
|
],
|
|
1828
|
+
exports: [DossierListComponent, DossierDetailComponent],
|
|
1543
1829
|
entryComponents: [
|
|
1544
1830
|
DossierDetailTabSummaryComponent,
|
|
1545
1831
|
DossierDetailTabProgressComponent,
|
|
1546
1832
|
DossierDetailTabAuditComponent,
|
|
1547
|
-
DossierDetailTabDocumentsComponent
|
|
1548
|
-
|
|
1833
|
+
DossierDetailTabDocumentsComponent,
|
|
1834
|
+
DossierDetailTabContactMomentsComponent,
|
|
1835
|
+
],
|
|
1549
1836
|
},] }
|
|
1550
1837
|
];
|
|
1551
1838
|
|
|
@@ -1572,6 +1859,7 @@
|
|
|
1572
1859
|
exports.DEFAULT_TABS = DEFAULT_TABS;
|
|
1573
1860
|
exports.DossierDetailComponent = DossierDetailComponent;
|
|
1574
1861
|
exports.DossierDetailTabAuditComponent = DossierDetailTabAuditComponent;
|
|
1862
|
+
exports.DossierDetailTabContactMomentsComponent = DossierDetailTabContactMomentsComponent;
|
|
1575
1863
|
exports.DossierDetailTabDocumentsComponent = DossierDetailTabDocumentsComponent;
|
|
1576
1864
|
exports.DossierDetailTabProgressComponent = DossierDetailTabProgressComponent;
|
|
1577
1865
|
exports.DossierDetailTabSummaryComponent = DossierDetailTabSummaryComponent;
|
|
@@ -1579,6 +1867,8 @@
|
|
|
1579
1867
|
exports.DossierModule = DossierModule;
|
|
1580
1868
|
exports.DossierService = DossierService;
|
|
1581
1869
|
exports.TAB_MAP = TAB_MAP;
|
|
1870
|
+
exports.TabImpl = TabImpl;
|
|
1871
|
+
exports.TabLoaderImpl = TabLoaderImpl;
|
|
1582
1872
|
exports.TabService = TabService;
|
|
1583
1873
|
exports.ɵ0 = ɵ0$1;
|
|
1584
1874
|
exports.ɵa = DossierUpdateComponent;
|