@valtimo/dossier 4.15.2-next-main.8

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 +1592 -0
  2. package/bundles/valtimo-dossier.umd.js.map +1 -0
  3. package/bundles/valtimo-dossier.umd.min.js +16 -0
  4. package/bundles/valtimo-dossier.umd.min.js.map +1 -0
  5. package/esm2015/lib/dossier-detail/dossier-detail.component.js +87 -0
  6. package/esm2015/lib/dossier-detail/tab/audit/audit.component.js +64 -0
  7. package/esm2015/lib/dossier-detail/tab/documents/documents.component.js +101 -0
  8. package/esm2015/lib/dossier-detail/tab/progress/progress.component.js +47 -0
  9. package/esm2015/lib/dossier-detail/tab/summary/summary.component.js +124 -0
  10. package/esm2015/lib/dossier-detail-tab-enum.js +23 -0
  11. package/esm2015/lib/dossier-list/dossier-list.component.js +212 -0
  12. package/esm2015/lib/dossier-process-start-modal/dossier-process-start-modal.component.js +122 -0
  13. package/esm2015/lib/dossier-routing.module.js +57 -0
  14. package/esm2015/lib/dossier-supporting-process-start-modal/dossier-supporting-process-start-modal.component.js +117 -0
  15. package/esm2015/lib/dossier-update/dossier-update.component.js +121 -0
  16. package/esm2015/lib/dossier.config.js +29 -0
  17. package/esm2015/lib/dossier.module.js +117 -0
  18. package/esm2015/lib/dossier.service.js +50 -0
  19. package/esm2015/lib/tab.service.js +44 -0
  20. package/esm2015/public_api.js +30 -0
  21. package/esm2015/valtimo-dossier.js +9 -0
  22. package/fesm2015/valtimo-dossier.js +1243 -0
  23. package/fesm2015/valtimo-dossier.js.map +1 -0
  24. package/lib/dossier-detail/dossier-detail.component.d.ts +34 -0
  25. package/lib/dossier-detail/tab/audit/audit.component.d.ts +15 -0
  26. package/lib/dossier-detail/tab/documents/documents.component.d.ts +38 -0
  27. package/lib/dossier-detail/tab/progress/progress.component.d.ts +14 -0
  28. package/lib/dossier-detail/tab/summary/summary.component.d.ts +37 -0
  29. package/lib/dossier-detail-tab-enum.d.ts +6 -0
  30. package/lib/dossier-list/dossier-list.component.d.ts +65 -0
  31. package/lib/dossier-process-start-modal/dossier-process-start-modal.component.d.ts +37 -0
  32. package/lib/dossier-routing.module.d.ts +2 -0
  33. package/lib/dossier-supporting-process-start-modal/dossier-supporting-process-start-modal.component.d.ts +35 -0
  34. package/lib/dossier-update/dossier-update.component.d.ts +33 -0
  35. package/lib/dossier.config.d.ts +3 -0
  36. package/lib/dossier.module.d.ts +5 -0
  37. package/lib/dossier.service.d.ts +10 -0
  38. package/lib/tab.service.d.ts +7 -0
  39. package/package.json +27 -0
  40. package/public_api.d.ts +11 -0
  41. package/valtimo-dossier.d.ts +8 -0
  42. package/valtimo-dossier.metadata.json +1 -0
@@ -0,0 +1,1592 @@
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/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/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.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, components, ngBootstrap, formLink, ngxLogger, forms, http) { 'use strict';
6
+
7
+ /*! *****************************************************************************
8
+ Copyright (c) Microsoft Corporation.
9
+
10
+ Permission to use, copy, modify, and/or distribute this software for any
11
+ purpose with or without fee is hereby granted.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
14
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
16
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
18
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19
+ PERFORMANCE OF THIS SOFTWARE.
20
+ ***************************************************************************** */
21
+ /* global Reflect, Promise */
22
+ var extendStatics = function (d, b) {
23
+ extendStatics = Object.setPrototypeOf ||
24
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
25
+ function (d, b) { for (var p in b)
26
+ if (Object.prototype.hasOwnProperty.call(b, p))
27
+ d[p] = b[p]; };
28
+ return extendStatics(d, b);
29
+ };
30
+ function __extends(d, b) {
31
+ extendStatics(d, b);
32
+ function __() { this.constructor = d; }
33
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
34
+ }
35
+ var __assign = function () {
36
+ __assign = Object.assign || function __assign(t) {
37
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
38
+ s = arguments[i];
39
+ for (var p in s)
40
+ if (Object.prototype.hasOwnProperty.call(s, p))
41
+ t[p] = s[p];
42
+ }
43
+ return t;
44
+ };
45
+ return __assign.apply(this, arguments);
46
+ };
47
+ function __rest(s, e) {
48
+ var t = {};
49
+ for (var p in s)
50
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
51
+ t[p] = s[p];
52
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
53
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
54
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
55
+ t[p[i]] = s[p[i]];
56
+ }
57
+ return t;
58
+ }
59
+ function __decorate(decorators, target, key, desc) {
60
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
61
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
62
+ r = Reflect.decorate(decorators, target, key, desc);
63
+ else
64
+ for (var i = decorators.length - 1; i >= 0; i--)
65
+ if (d = decorators[i])
66
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
67
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
68
+ }
69
+ function __param(paramIndex, decorator) {
70
+ return function (target, key) { decorator(target, key, paramIndex); };
71
+ }
72
+ function __metadata(metadataKey, metadataValue) {
73
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
74
+ return Reflect.metadata(metadataKey, metadataValue);
75
+ }
76
+ function __awaiter(thisArg, _arguments, P, generator) {
77
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
78
+ return new (P || (P = Promise))(function (resolve, reject) {
79
+ function fulfilled(value) { try {
80
+ step(generator.next(value));
81
+ }
82
+ catch (e) {
83
+ reject(e);
84
+ } }
85
+ function rejected(value) { try {
86
+ step(generator["throw"](value));
87
+ }
88
+ catch (e) {
89
+ reject(e);
90
+ } }
91
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
92
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
93
+ });
94
+ }
95
+ function __generator(thisArg, body) {
96
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
97
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
98
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
99
+ function verb(n) { return function (v) { return step([n, v]); }; }
100
+ function step(op) {
101
+ if (f)
102
+ throw new TypeError("Generator is already executing.");
103
+ while (_)
104
+ try {
105
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
106
+ return t;
107
+ if (y = 0, t)
108
+ op = [op[0] & 2, t.value];
109
+ switch (op[0]) {
110
+ case 0:
111
+ case 1:
112
+ t = op;
113
+ break;
114
+ case 4:
115
+ _.label++;
116
+ return { value: op[1], done: false };
117
+ case 5:
118
+ _.label++;
119
+ y = op[1];
120
+ op = [0];
121
+ continue;
122
+ case 7:
123
+ op = _.ops.pop();
124
+ _.trys.pop();
125
+ continue;
126
+ default:
127
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
128
+ _ = 0;
129
+ continue;
130
+ }
131
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
132
+ _.label = op[1];
133
+ break;
134
+ }
135
+ if (op[0] === 6 && _.label < t[1]) {
136
+ _.label = t[1];
137
+ t = op;
138
+ break;
139
+ }
140
+ if (t && _.label < t[2]) {
141
+ _.label = t[2];
142
+ _.ops.push(op);
143
+ break;
144
+ }
145
+ if (t[2])
146
+ _.ops.pop();
147
+ _.trys.pop();
148
+ continue;
149
+ }
150
+ op = body.call(thisArg, _);
151
+ }
152
+ catch (e) {
153
+ op = [6, e];
154
+ y = 0;
155
+ }
156
+ finally {
157
+ f = t = 0;
158
+ }
159
+ if (op[0] & 5)
160
+ throw op[1];
161
+ return { value: op[0] ? op[1] : void 0, done: true };
162
+ }
163
+ }
164
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
165
+ if (k2 === undefined)
166
+ k2 = k;
167
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
168
+ }) : (function (o, m, k, k2) {
169
+ if (k2 === undefined)
170
+ k2 = k;
171
+ o[k2] = m[k];
172
+ });
173
+ function __exportStar(m, o) {
174
+ for (var p in m)
175
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
176
+ __createBinding(o, m, p);
177
+ }
178
+ function __values(o) {
179
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
180
+ if (m)
181
+ return m.call(o);
182
+ if (o && typeof o.length === "number")
183
+ return {
184
+ next: function () {
185
+ if (o && i >= o.length)
186
+ o = void 0;
187
+ return { value: o && o[i++], done: !o };
188
+ }
189
+ };
190
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
191
+ }
192
+ function __read(o, n) {
193
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
194
+ if (!m)
195
+ return o;
196
+ var i = m.call(o), r, ar = [], e;
197
+ try {
198
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
199
+ ar.push(r.value);
200
+ }
201
+ catch (error) {
202
+ e = { error: error };
203
+ }
204
+ finally {
205
+ try {
206
+ if (r && !r.done && (m = i["return"]))
207
+ m.call(i);
208
+ }
209
+ finally {
210
+ if (e)
211
+ throw e.error;
212
+ }
213
+ }
214
+ return ar;
215
+ }
216
+ function __spread() {
217
+ for (var ar = [], i = 0; i < arguments.length; i++)
218
+ ar = ar.concat(__read(arguments[i]));
219
+ return ar;
220
+ }
221
+ function __spreadArrays() {
222
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
223
+ s += arguments[i].length;
224
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
225
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
226
+ r[k] = a[j];
227
+ return r;
228
+ }
229
+ ;
230
+ function __await(v) {
231
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
232
+ }
233
+ function __asyncGenerator(thisArg, _arguments, generator) {
234
+ if (!Symbol.asyncIterator)
235
+ throw new TypeError("Symbol.asyncIterator is not defined.");
236
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
237
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
238
+ function verb(n) { if (g[n])
239
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
240
+ function resume(n, v) { try {
241
+ step(g[n](v));
242
+ }
243
+ catch (e) {
244
+ settle(q[0][3], e);
245
+ } }
246
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
247
+ function fulfill(value) { resume("next", value); }
248
+ function reject(value) { resume("throw", value); }
249
+ function settle(f, v) { if (f(v), q.shift(), q.length)
250
+ resume(q[0][0], q[0][1]); }
251
+ }
252
+ function __asyncDelegator(o) {
253
+ var i, p;
254
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
255
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
256
+ }
257
+ function __asyncValues(o) {
258
+ if (!Symbol.asyncIterator)
259
+ throw new TypeError("Symbol.asyncIterator is not defined.");
260
+ var m = o[Symbol.asyncIterator], i;
261
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
262
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
263
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
264
+ }
265
+ function __makeTemplateObject(cooked, raw) {
266
+ if (Object.defineProperty) {
267
+ Object.defineProperty(cooked, "raw", { value: raw });
268
+ }
269
+ else {
270
+ cooked.raw = raw;
271
+ }
272
+ return cooked;
273
+ }
274
+ ;
275
+ var __setModuleDefault = Object.create ? (function (o, v) {
276
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
277
+ }) : function (o, v) {
278
+ o["default"] = v;
279
+ };
280
+ function __importStar(mod) {
281
+ if (mod && mod.__esModule)
282
+ return mod;
283
+ var result = {};
284
+ if (mod != null)
285
+ for (var k in mod)
286
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
287
+ __createBinding(result, mod, k);
288
+ __setModuleDefault(result, mod);
289
+ return result;
290
+ }
291
+ function __importDefault(mod) {
292
+ return (mod && mod.__esModule) ? mod : { default: mod };
293
+ }
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);
299
+ }
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;
306
+ }
307
+
308
+ /*
309
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
310
+ *
311
+ * Licensed under EUPL, Version 1.2 (the "License");
312
+ * you may not use this file except in compliance with the License.
313
+ * You may obtain a copy of the License at
314
+ *
315
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
316
+ *
317
+ * Unless required by applicable law or agreed to in writing, software
318
+ * distributed under the License is distributed on an "AS IS" basis,
319
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
320
+ * See the License for the specific language governing permissions and
321
+ * limitations under the License.
322
+ */
323
+ (function (DefaultTabs) {
324
+ DefaultTabs["summary"] = "summary";
325
+ DefaultTabs["progress"] = "progress";
326
+ DefaultTabs["audit"] = "audit";
327
+ DefaultTabs["documents"] = "documents";
328
+ })(exports.DefaultTabs || (exports.DefaultTabs = {}));
329
+
330
+ /*
331
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
332
+ *
333
+ * Licensed under EUPL, Version 1.2 (the "License");
334
+ * you may not use this file except in compliance with the License.
335
+ * You may obtain a copy of the License at
336
+ *
337
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
338
+ *
339
+ * Unless required by applicable law or agreed to in writing, software
340
+ * distributed under the License is distributed on an "AS IS" basis,
341
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
342
+ * See the License for the specific language governing permissions and
343
+ * limitations under the License.
344
+ */
345
+ var DossierService = /** @class */ (function () {
346
+ function DossierService(configService) {
347
+ this.configService = configService;
348
+ this.definitions = configService.config.definitions;
349
+ }
350
+ DossierService.prototype.getImplementationEnvironmentDefinitions = function (name) {
351
+ return this.definitions.dossiers.find(function (definition) { return definition.name === name; });
352
+ };
353
+ DossierService.prototype.getDefinitionColumns = function (definitionNameId) {
354
+ var config = this.configService.config;
355
+ var customDefinitionTable = config.customDefinitionTables[definitionNameId];
356
+ return customDefinitionTable || config.defaultDefinitionTable;
357
+ };
358
+ DossierService.prototype.getInitialSortState = function (columns) {
359
+ var defaultColumn = columns.find(function (column) { return column.default; });
360
+ return {
361
+ isSorting: false,
362
+ state: { name: defaultColumn ? defaultColumn.propertyName : columns[0].propertyName, direction: 'DESC' }
363
+ };
364
+ };
365
+ return DossierService;
366
+ }());
367
+ DossierService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DossierService_Factory() { return new DossierService(i0.ɵɵinject(i1.ConfigService)); }, token: DossierService, providedIn: "root" });
368
+ DossierService.decorators = [
369
+ { type: i0.Injectable, args: [{
370
+ providedIn: 'root'
371
+ },] }
372
+ ];
373
+ DossierService.ctorParameters = function () { return [
374
+ { type: i1.ConfigService }
375
+ ]; };
376
+
377
+ /*
378
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
379
+ *
380
+ * Licensed under EUPL, Version 1.2 (the "License");
381
+ * you may not use this file except in compliance with the License.
382
+ * You may obtain a copy of the License at
383
+ *
384
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
385
+ *
386
+ * Unless required by applicable law or agreed to in writing, software
387
+ * distributed under the License is distributed on an "AS IS" basis,
388
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
389
+ * See the License for the specific language governing permissions and
390
+ * limitations under the License.
391
+ */
392
+ var moment = moment_;
393
+ moment.locale(localStorage.getItem('langKey') || '');
394
+ var DossierListComponent = /** @class */ (function () {
395
+ function DossierListComponent(route, router, documentService, translateService, dossierService) {
396
+ this.route = route;
397
+ this.router = router;
398
+ this.documentService = documentService;
399
+ this.translateService = translateService;
400
+ this.dossierService = dossierService;
401
+ this.documentDefinitionName = '';
402
+ this.showCreateDocument = false;
403
+ this.items = [];
404
+ this.fields = [];
405
+ this.processDefinitionListFields = [];
406
+ this.processDocumentDefinitions = [];
407
+ this.pagination = {
408
+ collectionSize: 0,
409
+ page: 1,
410
+ size: 10,
411
+ maxPaginationItemSize: 5,
412
+ sort: undefined
413
+ };
414
+ this.selectedProcessDocumentDefinition = null;
415
+ this.modalListenerAdded = false;
416
+ }
417
+ DossierListComponent.prototype.ngOnInit = function () {
418
+ this.doInit();
419
+ this.routeEvent(this.router);
420
+ this.modalListenerAdded = false;
421
+ };
422
+ DossierListComponent.prototype.ngOnDestroy = function () {
423
+ this.routerSubscription.unsubscribe();
424
+ this.translationSubscription.unsubscribe();
425
+ };
426
+ DossierListComponent.prototype.paginationSet = function () {
427
+ this.getData();
428
+ };
429
+ DossierListComponent.prototype.routeEvent = function (router$1) {
430
+ var _this = this;
431
+ this.routerSubscription = router$1.events.subscribe(function (e) {
432
+ if (e instanceof router.NavigationEnd) {
433
+ _this.doInit();
434
+ _this.getData();
435
+ }
436
+ });
437
+ };
438
+ DossierListComponent.prototype.doInit = function () {
439
+ var documentDefinitionName = this.route.snapshot.paramMap.get('documentDefinitionName') || '';
440
+ var columns = this.dossierService.getDefinitionColumns(documentDefinitionName);
441
+ this.documentDefinitionName = documentDefinitionName;
442
+ this.initialSortState = this.dossierService.getInitialSortState(columns);
443
+ this.openTranslationSubscription(columns);
444
+ };
445
+ DossierListComponent.prototype.openTranslationSubscription = function (columns) {
446
+ var _this = this;
447
+ this.translationSubscription = rxjs.combineLatest(columns.map(function (column) { return _this.translateService.stream("fieldLabels." + column.translationKey); })).subscribe(function (labels) {
448
+ _this.fields = columns.map(function (column, index) { return (Object.assign({ key: column.propertyName, label: labels[index], sortable: column.sortable }, (column.viewType && { viewType: column.viewType }))); });
449
+ });
450
+ };
451
+ DossierListComponent.prototype.getData = function () {
452
+ this.findDocumentDefinition(this.documentDefinitionName);
453
+ if (this.hasCachedSearchRequest()) {
454
+ var documentSearchRequest = this.getCachedSearch();
455
+ this.globalSearchFilter = documentSearchRequest.globalSearchFilter;
456
+ this.sequence = documentSearchRequest.sequence;
457
+ this.createdBy = documentSearchRequest.createdBy;
458
+ this.findDocuments(documentSearchRequest);
459
+ }
460
+ else {
461
+ this.doSearch();
462
+ }
463
+ this.getAllAssociatedProcessDefinitions();
464
+ };
465
+ DossierListComponent.prototype.doSearch = function () {
466
+ var documentSearchRequest = this.buildDocumentSearchRequest();
467
+ this.findDocuments(documentSearchRequest);
468
+ };
469
+ DossierListComponent.prototype.findDocuments = function (documentSearchRequest) {
470
+ var _this = this;
471
+ return this.documentService.getDocuments(documentSearchRequest).subscribe(function (documents) {
472
+ _this.documents = documents;
473
+ _this.transformDocuments(_this.documents.content);
474
+ _this.pagination.collectionSize = _this.documents.totalElements;
475
+ _this.storeSearch(documentSearchRequest);
476
+ });
477
+ };
478
+ DossierListComponent.prototype.getAllAssociatedProcessDefinitions = function () {
479
+ var _this = this;
480
+ this.documentService
481
+ .findProcessDocumentDefinitions(this.documentDefinitionName)
482
+ .subscribe(function (processDocumentDefinitions) {
483
+ _this.processDocumentDefinitions = processDocumentDefinitions.filter(function (processDocumentDefinition) { return processDocumentDefinition.canInitializeDocument; });
484
+ _this.processDefinitionListFields = [
485
+ {
486
+ key: 'processName',
487
+ label: 'Proces'
488
+ }
489
+ ];
490
+ });
491
+ };
492
+ DossierListComponent.prototype.getCachedSearch = function () {
493
+ var json = JSON.parse(this.getCachedDocumentSearchRequest());
494
+ return new document.DocumentSearchRequestImpl(json.definitionName, this.pagination.page - 1, this.pagination.size, json.sequence, json.createdBy, json.globalSearchFilter, json.sort);
495
+ };
496
+ 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 ? this.pagination.sort : this.initialSortState);
498
+ };
499
+ DossierListComponent.prototype.storeSearch = function (documentSearchRequest) {
500
+ localStorage.setItem(this.getCachedKey(), JSON.stringify(documentSearchRequest));
501
+ };
502
+ DossierListComponent.prototype.getCachedDocumentSearchRequest = function () {
503
+ return localStorage.getItem(this.getCachedKey()) || '';
504
+ };
505
+ DossierListComponent.prototype.hasCachedSearchRequest = function () {
506
+ return localStorage.getItem(this.getCachedKey()) !== null;
507
+ };
508
+ DossierListComponent.prototype.getCachedKey = function () {
509
+ return 'list-search-' + this.documentDefinitionName;
510
+ };
511
+ DossierListComponent.prototype.rowClick = function (document) {
512
+ this.router.navigate(["/dossiers/" + this.documentDefinitionName + "/document/" + document.id + "/" + exports.DefaultTabs.summary]);
513
+ };
514
+ DossierListComponent.prototype.startDossier = function () {
515
+ if (this.processDocumentDefinitions.length > 1) {
516
+ $('#startProcess').modal('show');
517
+ }
518
+ else {
519
+ this.selectedProcessDocumentDefinition = this.processDocumentDefinitions[0];
520
+ this.showStartProcessModal();
521
+ }
522
+ };
523
+ DossierListComponent.prototype.showStartProcessModal = function () {
524
+ if (this.selectedProcessDocumentDefinition !== null) {
525
+ this.processStart.openModal(this.selectedProcessDocumentDefinition);
526
+ this.selectedProcessDocumentDefinition = null;
527
+ }
528
+ };
529
+ DossierListComponent.prototype.selectProcess = function (processDocumentDefinition) {
530
+ var modal = $('#startProcess');
531
+ if (!this.modalListenerAdded) {
532
+ modal.on('hidden.bs.modal', this.showStartProcessModal.bind(this));
533
+ this.modalListenerAdded = true;
534
+ }
535
+ this.selectedProcessDocumentDefinition = processDocumentDefinition;
536
+ modal.modal('hide');
537
+ };
538
+ DossierListComponent.prototype.findDocumentDefinition = function (documentDefinitionName) {
539
+ var _this = this;
540
+ this.documentService.getDocumentDefinition(documentDefinitionName).subscribe(function (definition) {
541
+ _this.schema = definition.schema;
542
+ });
543
+ };
544
+ DossierListComponent.prototype.transformDocuments = function (documentsContent) {
545
+ this.items = documentsContent.map(function (document) {
546
+ var content = document.content, others = __rest(document, ["content"]);
547
+ return Object.assign(Object.assign({}, content), others);
548
+ });
549
+ };
550
+ DossierListComponent.prototype.paginationClicked = function (page) {
551
+ this.pagination.page = page;
552
+ this.doSearch();
553
+ };
554
+ DossierListComponent.prototype.sortChanged = function (sortState) {
555
+ this.pagination.sort = sortState;
556
+ this.doSearch();
557
+ };
558
+ DossierListComponent.prototype.getInitialSortState = function () {
559
+ if (this.hasCachedSearchRequest()) {
560
+ var cachedRequest = JSON.parse(this.getCachedDocumentSearchRequest());
561
+ return cachedRequest.sort ? cachedRequest.sort : this.initialSortState;
562
+ }
563
+ return this.initialSortState;
564
+ };
565
+ return DossierListComponent;
566
+ }());
567
+ DossierListComponent.decorators = [
568
+ { type: i0.Component, args: [{
569
+ 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\">{{ '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",
571
+ styles: [""]
572
+ },] }
573
+ ];
574
+ DossierListComponent.ctorParameters = function () { return [
575
+ { type: router.ActivatedRoute },
576
+ { type: router.Router },
577
+ { type: document.DocumentService },
578
+ { type: core.TranslateService },
579
+ { type: DossierService }
580
+ ]; };
581
+ DossierListComponent.propDecorators = {
582
+ processStart: [{ type: i0.ViewChild, args: ['processStartModal',] }]
583
+ };
584
+
585
+ var moment$1 = moment_;
586
+ moment$1.locale(localStorage.getItem('langKey') || '');
587
+ moment$1.defaultFormat = 'DD MMM YYYY HH:mm';
588
+ var DossierDetailTabSummaryComponent = /** @class */ (function () {
589
+ function DossierDetailTabSummaryComponent(router, documentService, taskService, processService, el, renderer, route, formService, userProviderService) {
590
+ this.router = router;
591
+ this.documentService = documentService;
592
+ this.taskService = taskService;
593
+ this.processService = processService;
594
+ this.el = el;
595
+ this.renderer = renderer;
596
+ this.route = route;
597
+ this.formService = formService;
598
+ this.userProviderService = userProviderService;
599
+ this.processDocumentInstances = [];
600
+ this.tasks = [];
601
+ this.formDefinition = null;
602
+ this.roles = [];
603
+ this.snapshot = this.route.snapshot.paramMap;
604
+ this.documentDefinitionName = this.snapshot.get('documentDefinitionName') || '';
605
+ this.documentId = this.snapshot.get('documentId') || '';
606
+ this.options = new contract.FormioOptionsImpl();
607
+ this.options.disableAlerts = true;
608
+ }
609
+ DossierDetailTabSummaryComponent.prototype.ngOnInit = function () {
610
+ this.moment = moment$1;
611
+ this.init();
612
+ };
613
+ DossierDetailTabSummaryComponent.prototype.init = function () {
614
+ var _this = this;
615
+ this.documentService.getDocument(this.documentId).subscribe(function (document) {
616
+ _this.document = document;
617
+ });
618
+ this.formService
619
+ .getFormDefinitionByNamePreFilled(this.documentDefinitionName + ".summary", this.documentId)
620
+ .subscribe(function (formDefinition) {
621
+ _this.formDefinition = formDefinition;
622
+ });
623
+ this.userProviderService.getUserSubject().subscribe(function (user) {
624
+ _this.roles = user.roles;
625
+ _this.tasks = [];
626
+ _this.loadProcessDocumentInstances(_this.documentId);
627
+ });
628
+ };
629
+ DossierDetailTabSummaryComponent.prototype.loadProcessDocumentInstances = function (documentId) {
630
+ var _this = this;
631
+ this.documentService.findProcessDocumentInstances(documentId).subscribe(function (processDocumentInstances) {
632
+ _this.processDocumentInstances = processDocumentInstances;
633
+ _this.processDocumentInstances.forEach(function (instance) {
634
+ _this.loadProcessInstanceTasks(instance.id.processInstanceId);
635
+ });
636
+ });
637
+ };
638
+ DossierDetailTabSummaryComponent.prototype.loadProcessInstanceTasks = function (processInstanceId) {
639
+ var _this = this;
640
+ this.processService.getProcessInstanceTasks(processInstanceId).subscribe(function (tasks) {
641
+ tasks.forEach(function (task) {
642
+ task.createdUnix = _this.moment(task.created).unix();
643
+ task.created = _this.moment(task.created).format('DD MMM YYYY HH:mm');
644
+ task.isLocked = function () {
645
+ var e_1, _a;
646
+ var locked = true;
647
+ try {
648
+ for (var _b = __values(task.identityLinks), _c = _b.next(); !_c.done; _c = _b.next()) {
649
+ var link = _c.value;
650
+ if (link.type === 'candidate' && link.groupId) {
651
+ if (_this.roles.includes(link.groupId)) {
652
+ locked = false;
653
+ break;
654
+ }
655
+ }
656
+ }
657
+ }
658
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
659
+ finally {
660
+ try {
661
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
662
+ }
663
+ finally { if (e_1) throw e_1.error; }
664
+ }
665
+ return locked;
666
+ };
667
+ });
668
+ _this.tasks = _this.tasks.concat(tasks);
669
+ _this.tasks.sort(function (t1, t2) { return t2.createdUnix - t1.createdUnix; });
670
+ });
671
+ };
672
+ DossierDetailTabSummaryComponent.prototype.rowTaskClick = function (task) {
673
+ this.taskDetail.openTaskDetails(task);
674
+ };
675
+ return DossierDetailTabSummaryComponent;
676
+ }());
677
+ DossierDetailTabSummaryComponent.decorators = [
678
+ { type: i0.Component, args: [{
679
+ 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 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",
681
+ encapsulation: i0.ViewEncapsulation.None,
682
+ 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
+ },] }
684
+ ];
685
+ DossierDetailTabSummaryComponent.ctorParameters = function () { return [
686
+ { type: router.Router },
687
+ { type: document.DocumentService },
688
+ { type: task.TaskService },
689
+ { type: process.ProcessService },
690
+ { type: i0.ElementRef },
691
+ { type: i0.Renderer2 },
692
+ { type: router.ActivatedRoute },
693
+ { type: form.FormService },
694
+ { type: security.UserProviderService }
695
+ ]; };
696
+ DossierDetailTabSummaryComponent.propDecorators = {
697
+ taskDetail: [{ type: i0.ViewChild, args: ['taskDetail',] }]
698
+ };
699
+
700
+ /*
701
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
702
+ *
703
+ * Licensed under EUPL, Version 1.2 (the "License");
704
+ * you may not use this file except in compliance with the License.
705
+ * You may obtain a copy of the License at
706
+ *
707
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
708
+ *
709
+ * Unless required by applicable law or agreed to in writing, software
710
+ * distributed under the License is distributed on an "AS IS" basis,
711
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
712
+ * See the License for the specific language governing permissions and
713
+ * limitations under the License.
714
+ */
715
+ var DossierDetailTabProgressComponent = /** @class */ (function () {
716
+ function DossierDetailTabProgressComponent(route, documentService) {
717
+ this.route = route;
718
+ this.documentService = documentService;
719
+ var snapshot = this.route.snapshot.paramMap;
720
+ this.documentId = snapshot.get('documentId') || '';
721
+ }
722
+ DossierDetailTabProgressComponent.prototype.ngOnInit = function () {
723
+ var _this = this;
724
+ this.documentService.findProcessDocumentInstances(this.documentId).subscribe(function (processDocumentInstances) {
725
+ _this.processDocumentInstances = processDocumentInstances;
726
+ _this.selectedProcessInstanceId = processDocumentInstances[0].id.processInstanceId;
727
+ });
728
+ };
729
+ DossierDetailTabProgressComponent.prototype.loadProcessInstance = function (processInstanceId) {
730
+ this.selectedProcessInstanceId = processInstanceId;
731
+ };
732
+ return DossierDetailTabProgressComponent;
733
+ }());
734
+ DossierDetailTabProgressComponent.decorators = [
735
+ { type: i0.Component, args: [{
736
+ 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 *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",
738
+ styles: [".full-height-tab-content{height:calc(100vh - 380px);width:100%}"]
739
+ },] }
740
+ ];
741
+ DossierDetailTabProgressComponent.ctorParameters = function () { return [
742
+ { type: router.ActivatedRoute },
743
+ { type: document.DocumentService }
744
+ ]; };
745
+
746
+ /*
747
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
748
+ *
749
+ * Licensed under EUPL, Version 1.2 (the "License");
750
+ * you may not use this file except in compliance with the License.
751
+ * You may obtain a copy of the License at
752
+ *
753
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
754
+ *
755
+ * Unless required by applicable law or agreed to in writing, software
756
+ * distributed under the License is distributed on an "AS IS" basis,
757
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
758
+ * See the License for the specific language governing permissions and
759
+ * limitations under the License.
760
+ */
761
+ var moment$2 = moment_;
762
+ moment$2.locale(localStorage.getItem('langKey') || '');
763
+ moment$2.defaultFormat = 'DD MMM YYYY HH:mm';
764
+ var DossierDetailTabAuditComponent = /** @class */ (function () {
765
+ function DossierDetailTabAuditComponent(route, documentService, spinnerService) {
766
+ this.route = route;
767
+ this.documentService = documentService;
768
+ this.spinnerService = spinnerService;
769
+ this.spinnerService.show('auditSpinner');
770
+ var snapshot = this.route.snapshot.paramMap;
771
+ this.documentId = snapshot.get('documentId') || '';
772
+ }
773
+ DossierDetailTabAuditComponent.getTranslationKey = function (auditEvent) {
774
+ var classNameArray = auditEvent.className.split('.');
775
+ var eventName = classNameArray[classNameArray.length - 1];
776
+ return 'events.' + eventName;
777
+ };
778
+ DossierDetailTabAuditComponent.prototype.ngOnInit = function () {
779
+ var _this = this;
780
+ this.documentService.getAuditLog(this.documentId).subscribe(function (page) {
781
+ var timelineItems = [];
782
+ page.content.forEach(function (auditRecord) {
783
+ var occurredOn = moment$2(auditRecord.metaData.occurredOn);
784
+ var fromNow = occurredOn.fromNow();
785
+ timelineItems.push(new contract.TimelineItemImpl(occurredOn.format('DD MMM YYYY'), occurredOn.format('HH:mm'), auditRecord.metaData.user, fromNow, DossierDetailTabAuditComponent.getTranslationKey(auditRecord.auditEvent), auditRecord.auditEvent));
786
+ });
787
+ _this.timelineItems = timelineItems;
788
+ _this.spinnerService.hide('auditSpinner');
789
+ });
790
+ };
791
+ return DossierDetailTabAuditComponent;
792
+ }());
793
+ DossierDetailTabAuditComponent.decorators = [
794
+ { type: i0.Component, args: [{
795
+ 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: [""]
798
+ },] }
799
+ ];
800
+ DossierDetailTabAuditComponent.ctorParameters = function () { return [
801
+ { type: router.ActivatedRoute },
802
+ { type: document.DocumentService },
803
+ { type: ngxSpinner.NgxSpinnerService }
804
+ ]; };
805
+
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
+ var DossierDetailTabDocumentsComponent = /** @class */ (function () {
822
+ function DossierDetailTabDocumentsComponent(route, documentService, toastrService, uploadProviderService, downloadService) {
823
+ this.route = route;
824
+ this.documentService = documentService;
825
+ this.toastrService = toastrService;
826
+ this.uploadProviderService = uploadProviderService;
827
+ this.downloadService = downloadService;
828
+ this.relatedFiles = [];
829
+ this.fields = [
830
+ { key: 'fileName', label: 'File name' },
831
+ { key: 'sizeInBytes', label: 'Size in bytes' },
832
+ { key: 'createdOn', label: 'Created on', viewType: 'date' },
833
+ { key: 'createdBy', label: 'Created by' }
834
+ ];
835
+ this.actions = [
836
+ {
837
+ columnName: '',
838
+ iconClass: 'fas fa-external-link-alt',
839
+ callback: this.downloadDocument.bind(this)
840
+ },
841
+ {
842
+ columnName: '',
843
+ iconClass: 'fas fa-trash-alt',
844
+ callback: this.removeRelatedFile.bind(this)
845
+ }
846
+ ];
847
+ this.uploading$ = new rxjs.BehaviorSubject(false);
848
+ var snapshot = this.route.snapshot.paramMap;
849
+ this.documentId = snapshot.get('documentId') || '';
850
+ this.documentDefinitionName = snapshot.get('documentDefinitionName') || '';
851
+ }
852
+ DossierDetailTabDocumentsComponent.prototype.ngOnInit = function () {
853
+ this.loadDocuments();
854
+ };
855
+ DossierDetailTabDocumentsComponent.prototype.fileSelected = function (file) {
856
+ var _this = this;
857
+ this.uploading$.next(true);
858
+ this.uploadProviderService.uploadFile(file, this.documentDefinitionName).pipe(operators.switchMap(function (resourceFile) { return _this.documentService.assignResource(_this.documentId, resourceFile.data.resourceId); })).subscribe(function () {
859
+ _this.toastrService.success('Successfully uploaded document to dossier');
860
+ _this.loadDocuments();
861
+ _this.uploading$.next(false);
862
+ }, function () {
863
+ _this.toastrService.error('Failed to upload document to dossier');
864
+ _this.uploading$.next(false);
865
+ });
866
+ };
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
+ DossierDetailTabDocumentsComponent.prototype.downloadDocument = function (relatedFile) {
874
+ var _this = this;
875
+ this.uploadProviderService.getResource(relatedFile.fileId).subscribe(function (resource) {
876
+ _this.downloadService.downloadFile(resource.url, resource.resource.name);
877
+ });
878
+ };
879
+ DossierDetailTabDocumentsComponent.prototype.removeRelatedFile = function (relatedFile) {
880
+ var _this = this;
881
+ this.documentService.removeResource(this.documentId, relatedFile.fileId).subscribe(function () {
882
+ _this.toastrService.success('Successfully removed document from dossier');
883
+ _this.loadDocuments();
884
+ }, function () {
885
+ _this.toastrService.error('Failed to remove document from dossier');
886
+ });
887
+ };
888
+ return DossierDetailTabDocumentsComponent;
889
+ }());
890
+ DossierDetailTabDocumentsComponent.decorators = [
891
+ { type: i0.Component, args: [{
892
+ 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]=\"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",
894
+ styles: [""]
895
+ },] }
896
+ ];
897
+ DossierDetailTabDocumentsComponent.ctorParameters = function () { return [
898
+ { type: router.ActivatedRoute },
899
+ { type: document.DocumentService },
900
+ { type: ngxToastr.ToastrService },
901
+ { type: resource.UploadProviderService },
902
+ { type: resource.DownloadService }
903
+ ]; };
904
+
905
+ /*
906
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
907
+ *
908
+ * Licensed under EUPL, Version 1.2 (the "License");
909
+ * you may not use this file except in compliance with the License.
910
+ * You may obtain a copy of the License at
911
+ *
912
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
913
+ *
914
+ * Unless required by applicable law or agreed to in writing, software
915
+ * distributed under the License is distributed on an "AS IS" basis,
916
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
917
+ * See the License for the specific language governing permissions and
918
+ * limitations under the License.
919
+ */
920
+ var TAB_MAP = new i0.InjectionToken('TabMap');
921
+ var DEFAULT_TABS = new Map([
922
+ [exports.DefaultTabs.summary, DossierDetailTabSummaryComponent],
923
+ [exports.DefaultTabs.progress, DossierDetailTabProgressComponent],
924
+ [exports.DefaultTabs.audit, DossierDetailTabAuditComponent],
925
+ [exports.DefaultTabs.documents, DossierDetailTabDocumentsComponent]
926
+ ]);
927
+
928
+ /*
929
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
930
+ *
931
+ * Licensed under EUPL, Version 1.2 (the "License");
932
+ * you may not use this file except in compliance with the License.
933
+ * You may obtain a copy of the License at
934
+ *
935
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
936
+ *
937
+ * Unless required by applicable law or agreed to in writing, software
938
+ * distributed under the License is distributed on an "AS IS" basis,
939
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
940
+ * See the License for the specific language governing permissions and
941
+ * limitations under the License.
942
+ */
943
+ var TabService = /** @class */ (function () {
944
+ function TabService(tabMap) {
945
+ var _this = this;
946
+ if (tabMap === void 0) { tabMap = DEFAULT_TABS; }
947
+ this.tabs = [];
948
+ this.tabMap = tabMap;
949
+ var i = 0;
950
+ this.tabMap.forEach(function (component, name, map) {
951
+ _this.tabs.push(new contract.TabImpl(name, i, component));
952
+ i++;
953
+ });
954
+ }
955
+ TabService.prototype.getTabs = function () {
956
+ return this.tabs;
957
+ };
958
+ return TabService;
959
+ }());
960
+ TabService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TabService_Factory() { return new TabService(i0.ɵɵinject(TAB_MAP)); }, token: TabService, providedIn: "root" });
961
+ TabService.decorators = [
962
+ { type: i0.Injectable, args: [{
963
+ providedIn: 'root'
964
+ },] }
965
+ ];
966
+ TabService.ctorParameters = function () { return [
967
+ { type: Map, decorators: [{ type: i0.Inject, args: [TAB_MAP,] }] }
968
+ ]; };
969
+
970
+ /*
971
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
972
+ *
973
+ * Licensed under EUPL, Version 1.2 (the "License");
974
+ * you may not use this file except in compliance with the License.
975
+ * You may obtain a copy of the License at
976
+ *
977
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
978
+ *
979
+ * Unless required by applicable law or agreed to in writing, software
980
+ * distributed under the License is distributed on an "AS IS" basis,
981
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
982
+ * See the License for the specific language governing permissions and
983
+ * limitations under the License.
984
+ */
985
+ var DossierDetailComponent = /** @class */ (function () {
986
+ function DossierDetailComponent(componentFactoryResolver, translateService, documentService, processService, route, router, location, tabService) {
987
+ this.componentFactoryResolver = componentFactoryResolver;
988
+ this.translateService = translateService;
989
+ this.documentService = documentService;
990
+ this.processService = processService;
991
+ this.route = route;
992
+ this.router = router;
993
+ this.location = location;
994
+ this.tabService = tabService;
995
+ this.document = null;
996
+ this.tabLoader = null;
997
+ this.processDefinitionListFields = [];
998
+ this.processDocumentDefinitions = [];
999
+ this.snapshot = this.route.snapshot.paramMap;
1000
+ this.documentDefinitionName = this.snapshot.get('documentDefinitionName') || '';
1001
+ this.documentId = this.snapshot.get('documentId') || '';
1002
+ }
1003
+ DossierDetailComponent.prototype.ngOnInit = function () {
1004
+ var _this = this;
1005
+ this.tabLoader = new contract.TabLoaderImpl(this.tabService.getTabs(), this.componentFactoryResolver, this.viewContainerRef, this.translateService, this.router, this.location);
1006
+ this.documentService.getDocumentDefinition(this.documentDefinitionName).subscribe(function (definition) {
1007
+ _this.documentDefinitionNameTitle = definition.schema.title;
1008
+ });
1009
+ this.initialTabName = this.snapshot.get('tab');
1010
+ this.tabLoader.initial(this.initialTabName);
1011
+ this.getAllAssociatedProcessDefinitions();
1012
+ };
1013
+ DossierDetailComponent.prototype.getAllAssociatedProcessDefinitions = function () {
1014
+ var _this = this;
1015
+ this.documentService.findProcessDocumentDefinitions(this.documentDefinitionName).subscribe(function (processDocumentDefinitions) {
1016
+ _this.processDocumentDefinitions = processDocumentDefinitions
1017
+ .filter(function (processDocumentDefinition) { return processDocumentDefinition.startableByUser; });
1018
+ _this.processDefinitionListFields = [{
1019
+ key: 'processName',
1020
+ label: 'Proces'
1021
+ }];
1022
+ });
1023
+ };
1024
+ DossierDetailComponent.prototype.startProcess = function (processDocumentDefinition) {
1025
+ this.supportingProcessStart.openModal(processDocumentDefinition, this.documentId);
1026
+ };
1027
+ return DossierDetailComponent;
1028
+ }());
1029
+ DossierDetailComponent.decorators = [
1030
+ { type: i0.Component, args: [{
1031
+ 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 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",
1033
+ styles: [".tab-container{min-height:300px}"]
1034
+ },] }
1035
+ ];
1036
+ DossierDetailComponent.ctorParameters = function () { return [
1037
+ { type: i0.ComponentFactoryResolver },
1038
+ { type: core.TranslateService },
1039
+ { type: document.DocumentService },
1040
+ { type: process.ProcessService },
1041
+ { type: router.ActivatedRoute },
1042
+ { type: router.Router },
1043
+ { type: common.Location },
1044
+ { type: TabService }
1045
+ ]; };
1046
+ DossierDetailComponent.propDecorators = {
1047
+ viewContainerRef: [{ type: i0.ViewChild, args: ['tabContainer', { read: i0.ViewContainerRef, static: true },] }],
1048
+ supportingProcessStart: [{ type: i0.ViewChild, args: ['supportingProcessStartModal',] }]
1049
+ };
1050
+
1051
+ /*
1052
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
1053
+ *
1054
+ * Licensed under EUPL, Version 1.2 (the "License");
1055
+ * you may not use this file except in compliance with the License.
1056
+ * You may obtain a copy of the License at
1057
+ *
1058
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
1059
+ *
1060
+ * Unless required by applicable law or agreed to in writing, software
1061
+ * distributed under the License is distributed on an "AS IS" basis,
1062
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1063
+ * See the License for the specific language governing permissions and
1064
+ * limitations under the License.
1065
+ */
1066
+ var moment$3 = moment_;
1067
+ moment$3.locale(localStorage.getItem('langKey') || '');
1068
+ var DossierUpdateComponent = /** @class */ (function () {
1069
+ function DossierUpdateComponent(taskService, documentService, route, toastr, location, dossierService) {
1070
+ this.taskService = taskService;
1071
+ this.documentService = documentService;
1072
+ this.route = route;
1073
+ this.toastr = toastr;
1074
+ this.location = location;
1075
+ this.customDefinitions = {};
1076
+ var snapshot = this.route.snapshot.paramMap;
1077
+ this.documentDefinitionName = snapshot.get('documentDefinitionName') || '';
1078
+ this.documentId = snapshot.get('documentId') || '';
1079
+ this.taskId = snapshot.get('taskId') || '';
1080
+ this.implementationDefinitions = dossierService.getImplementationEnvironmentDefinitions(this.documentDefinitionName);
1081
+ this.loadDocumentDefinition(this.documentDefinitionName);
1082
+ this.loadDocument(this.documentId);
1083
+ }
1084
+ DossierUpdateComponent.prototype.ngOnInit = function () {
1085
+ this.getTask(this.taskId);
1086
+ if (this.implementationDefinitions.definitions.detail.summary) {
1087
+ this.customDefinitions = this.implementationDefinitions.definitions.detail.summary;
1088
+ }
1089
+ };
1090
+ DossierUpdateComponent.prototype.loadDocumentDefinition = function (name) {
1091
+ var _this = this;
1092
+ this.documentService.getDocumentDefinition(name).subscribe(function (definition) {
1093
+ _this.schema = definition.schema;
1094
+ });
1095
+ };
1096
+ DossierUpdateComponent.prototype.loadDocument = function (id) {
1097
+ var _this = this;
1098
+ this.documentService.getDocument(id).subscribe(function (document) {
1099
+ _this.document = document;
1100
+ });
1101
+ };
1102
+ DossierUpdateComponent.prototype.getTask = function (id) {
1103
+ var _this = this;
1104
+ this.taskService.getTask(id).subscribe(function (task) {
1105
+ _this.task = task;
1106
+ _this.task.task.created = moment$3(_this.task.task.created).format('DD MMM YYYY HH:mm');
1107
+ _this.page = {
1108
+ title: _this.task.task.name,
1109
+ subtitle: "Created " + moment$3(_this.task.task.created).fromNow()
1110
+ };
1111
+ });
1112
+ };
1113
+ DossierUpdateComponent.prototype.reset = function () {
1114
+ this.loadDocument(this.documentId);
1115
+ };
1116
+ DossierUpdateComponent.prototype.back = function () {
1117
+ this.location.back();
1118
+ };
1119
+ DossierUpdateComponent.prototype.save = function () {
1120
+ var _this = this;
1121
+ var document = {
1122
+ documentId: this.document.id,
1123
+ content: this.document.content,
1124
+ versionBasedOn: this.document.version
1125
+ };
1126
+ this.documentService.modifyDocument(document).subscribe(function (result) {
1127
+ _this.document = result.document;
1128
+ _this.toastr.success('Document aangepast');
1129
+ _this.location.back();
1130
+ });
1131
+ };
1132
+ DossierUpdateComponent.prototype.submit = function (data) {
1133
+ var _this = this;
1134
+ // merge document content with formdata
1135
+ var mergedData = Object.assign({}, this.document.content, data);
1136
+ var documentData = {
1137
+ request: {
1138
+ documentId: this.document.id,
1139
+ content: mergedData,
1140
+ versionBasedOn: this.document.version
1141
+ },
1142
+ taskId: this.task.task.id
1143
+ };
1144
+ this.documentService.modifyDocumentAndCompleteTask(documentData).subscribe(function (result) {
1145
+ _this.toastr.success(_this.task.task.name + ' has successfully been completed');
1146
+ _this.location.back();
1147
+ });
1148
+ };
1149
+ DossierUpdateComponent.prototype.returnZero = function () {
1150
+ return 0;
1151
+ };
1152
+ return DossierUpdateComponent;
1153
+ }());
1154
+ DossierUpdateComponent.decorators = [
1155
+ { type: i0.Component, args: [{
1156
+ 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\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",
1158
+ styles: [""]
1159
+ },] }
1160
+ ];
1161
+ DossierUpdateComponent.ctorParameters = function () { return [
1162
+ { type: task.TaskService },
1163
+ { type: document.DocumentService },
1164
+ { type: router.ActivatedRoute },
1165
+ { type: ngxToastr.ToastrService },
1166
+ { type: common.Location },
1167
+ { type: DossierService }
1168
+ ]; };
1169
+
1170
+ /*
1171
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
1172
+ *
1173
+ * Licensed under EUPL, Version 1.2 (the "License");
1174
+ * you may not use this file except in compliance with the License.
1175
+ * You may obtain a copy of the License at
1176
+ *
1177
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
1178
+ *
1179
+ * Unless required by applicable law or agreed to in writing, software
1180
+ * distributed under the License is distributed on an "AS IS" basis,
1181
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1182
+ * See the License for the specific language governing permissions and
1183
+ * limitations under the License.
1184
+ */
1185
+ 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] };
1186
+ var routes = [
1187
+ {
1188
+ path: 'dossiers/:documentDefinitionName',
1189
+ component: DossierListComponent,
1190
+ canActivate: [security.AuthGuardService],
1191
+ data: ɵ0
1192
+ },
1193
+ {
1194
+ path: 'dossiers/:documentDefinitionName/document/:documentId/:tab',
1195
+ component: DossierDetailComponent,
1196
+ canActivate: [security.AuthGuardService],
1197
+ data: ɵ1
1198
+ },
1199
+ {
1200
+ path: 'dossiers/:documentDefinitionName/document/:documentId/:tab/tasks/:taskId',
1201
+ component: DossierUpdateComponent,
1202
+ canActivate: [security.AuthGuardService],
1203
+ data: ɵ2
1204
+ }
1205
+ ];
1206
+ var DossierRoutingModule = /** @class */ (function () {
1207
+ function DossierRoutingModule() {
1208
+ }
1209
+ return DossierRoutingModule;
1210
+ }());
1211
+ DossierRoutingModule.decorators = [
1212
+ { type: i0.NgModule, args: [{
1213
+ imports: [
1214
+ common.CommonModule,
1215
+ router.RouterModule.forChild(routes),
1216
+ ],
1217
+ exports: [router.RouterModule]
1218
+ },] }
1219
+ ];
1220
+
1221
+ /*
1222
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
1223
+ *
1224
+ * Licensed under EUPL, Version 1.2 (the "License");
1225
+ * you may not use this file except in compliance with the License.
1226
+ * You may obtain a copy of the License at
1227
+ *
1228
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
1229
+ *
1230
+ * Unless required by applicable law or agreed to in writing, software
1231
+ * distributed under the License is distributed on an "AS IS" basis,
1232
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1233
+ * See the License for the specific language governing permissions and
1234
+ * limitations under the License.
1235
+ */
1236
+ var DossierProcessStartModalComponent = /** @class */ (function () {
1237
+ function DossierProcessStartModalComponent(route, router, processService, documentService, formLinkService, userProviderService, logger) {
1238
+ this.route = route;
1239
+ this.router = router;
1240
+ this.processService = processService;
1241
+ this.documentService = documentService;
1242
+ this.formLinkService = formLinkService;
1243
+ this.userProviderService = userProviderService;
1244
+ this.logger = logger;
1245
+ }
1246
+ DossierProcessStartModalComponent.prototype.ngOnInit = function () {
1247
+ this.isUserAdmin();
1248
+ };
1249
+ DossierProcessStartModalComponent.prototype.loadFormDefinition = function () {
1250
+ var _this = this;
1251
+ this.formDefinition = null;
1252
+ this.formLinkService.getStartEventFormDefinitionByProcessDefinitionKey(this.processDefinitionKey)
1253
+ .subscribe(function (formDefinition) {
1254
+ _this.formAssociation = formDefinition.formAssociation;
1255
+ var className = _this.formAssociation.formLink.className.split('.');
1256
+ var linkType = className[className.length - 1];
1257
+ switch (linkType) {
1258
+ case 'BpmnElementFormIdLink':
1259
+ _this.formDefinition = formDefinition;
1260
+ _this.modal.show();
1261
+ break;
1262
+ case 'BpmnElementUrlLink':
1263
+ var url = _this.router.serializeUrl(_this.router.createUrlTree([formDefinition.formAssociation.formLink.url]));
1264
+ window.open(url, '_blank');
1265
+ break;
1266
+ case 'BpmnElementAngularStateUrlLink':
1267
+ _this.router.navigate([formDefinition.formAssociation.formLink.url]);
1268
+ break;
1269
+ default:
1270
+ _this.logger.fatal('Unsupported class name');
1271
+ }
1272
+ }, function (errors) {
1273
+ _this.modal.show();
1274
+ });
1275
+ };
1276
+ DossierProcessStartModalComponent.prototype.gotoFormLinkScreen = function () {
1277
+ this.modal.hide();
1278
+ this.router.navigate(['form-links'], { queryParams: { process: this.processDefinitionKey } });
1279
+ };
1280
+ Object.defineProperty(DossierProcessStartModalComponent.prototype, "modalTitle", {
1281
+ get: function () {
1282
+ return "Start - " + this.processName;
1283
+ },
1284
+ enumerable: false,
1285
+ configurable: true
1286
+ });
1287
+ DossierProcessStartModalComponent.prototype.openModal = function (processDocumentDefinition) {
1288
+ this.processDefinitionKey = processDocumentDefinition.id.processDefinitionKey;
1289
+ this.documentDefinitionName = processDocumentDefinition.id.documentDefinitionId.name;
1290
+ this.processName = processDocumentDefinition.processName;
1291
+ this.options = new contract.FormioOptionsImpl();
1292
+ this.options.disableAlerts = true;
1293
+ var formioBeforeSubmit = function (submission, callback) {
1294
+ callback(null, submission);
1295
+ };
1296
+ this.options.setHooks(formioBeforeSubmit);
1297
+ this.loadFormDefinition();
1298
+ };
1299
+ DossierProcessStartModalComponent.prototype.onSubmit = function (submission) {
1300
+ var _this = this;
1301
+ this.formioSubmission = submission;
1302
+ this.formLinkService.onSubmit(this.processDefinitionKey, this.formAssociation.formLink.id, submission.data).subscribe(function (formSubmissionResult) {
1303
+ _this.modal.hide();
1304
+ _this.router.navigate(['dossiers', _this.documentDefinitionName, 'document', formSubmissionResult.documentId, 'summary']);
1305
+ }, function (errors) {
1306
+ _this.form.showErrors(errors);
1307
+ });
1308
+ };
1309
+ DossierProcessStartModalComponent.prototype.isUserAdmin = function () {
1310
+ var _this = this;
1311
+ this.userProviderService.getUserSubject().subscribe(function (userIdentity) {
1312
+ _this.isAdmin = userIdentity.roles.includes('ROLE_ADMIN');
1313
+ }, function (error) {
1314
+ _this.logger.error('Failed to retrieve user identity', error);
1315
+ _this.isAdmin = false;
1316
+ });
1317
+ };
1318
+ return DossierProcessStartModalComponent;
1319
+ }());
1320
+ DossierProcessStartModalComponent.decorators = [
1321
+ { type: i0.Component, args: [{
1322
+ 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\"\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",
1324
+ encapsulation: i0.ViewEncapsulation.None,
1325
+ 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
+ },] }
1327
+ ];
1328
+ DossierProcessStartModalComponent.ctorParameters = function () { return [
1329
+ { type: router.ActivatedRoute },
1330
+ { type: router.Router },
1331
+ { type: process.ProcessService },
1332
+ { type: document.DocumentService },
1333
+ { type: formLink.FormLinkService },
1334
+ { type: security.UserProviderService },
1335
+ { type: ngxLogger.NGXLogger }
1336
+ ]; };
1337
+ DossierProcessStartModalComponent.propDecorators = {
1338
+ form: [{ type: i0.ViewChild, args: ['form', { static: false },] }],
1339
+ modal: [{ type: i0.ViewChild, args: ['processStartModal', { static: false },] }]
1340
+ };
1341
+
1342
+ /*
1343
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
1344
+ *
1345
+ * Licensed under EUPL, Version 1.2 (the "License");
1346
+ * you may not use this file except in compliance with the License.
1347
+ * You may obtain a copy of the License at
1348
+ *
1349
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
1350
+ *
1351
+ * Unless required by applicable law or agreed to in writing, software
1352
+ * distributed under the License is distributed on an "AS IS" basis,
1353
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1354
+ * See the License for the specific language governing permissions and
1355
+ * limitations under the License.
1356
+ */
1357
+ var DossierSupportingProcessStartModalComponent = /** @class */ (function () {
1358
+ function DossierSupportingProcessStartModalComponent(route, router, processService, documentService, formLinkService, logger) {
1359
+ this.route = route;
1360
+ this.router = router;
1361
+ this.processService = processService;
1362
+ this.documentService = documentService;
1363
+ this.formLinkService = formLinkService;
1364
+ this.logger = logger;
1365
+ this.formSubmit = new i0.EventEmitter();
1366
+ }
1367
+ DossierSupportingProcessStartModalComponent.prototype.loadFormDefinition = function () {
1368
+ var _this = this;
1369
+ this.formDefinition = null;
1370
+ this.formLinkService.getStartEventFormDefinitionByProcessDefinitionKey(this.processDefinitionKey)
1371
+ .subscribe(function (formDefinition) {
1372
+ _this.formAssociation = formDefinition.formAssociation;
1373
+ var className = _this.formAssociation.formLink.className.split('.');
1374
+ var linkType = className[className.length - 1];
1375
+ switch (linkType) {
1376
+ case 'BpmnElementFormIdLink':
1377
+ _this.formDefinition = formDefinition;
1378
+ _this.documentService.getDocument(_this.documentId).subscribe(function (document) {
1379
+ _this.submission = {
1380
+ data: document.content
1381
+ };
1382
+ }, function () { return rxjs.noop(); });
1383
+ _this.modal.show();
1384
+ break;
1385
+ case 'BpmnElementUrlLink':
1386
+ var url = _this.router.serializeUrl(_this.router.createUrlTree([formDefinition.formAssociation.formLink.url]));
1387
+ window.open(url, '_blank');
1388
+ break;
1389
+ case 'BpmnElementAngularStateUrlLink':
1390
+ _this.router.navigate([formDefinition.formAssociation.formLink.url]);
1391
+ break;
1392
+ default:
1393
+ _this.logger.fatal('Unsupported class name');
1394
+ }
1395
+ }, function (errors) {
1396
+ _this.modal.show();
1397
+ });
1398
+ };
1399
+ Object.defineProperty(DossierSupportingProcessStartModalComponent.prototype, "modalTitle", {
1400
+ get: function () {
1401
+ return "Start - " + this.processName;
1402
+ },
1403
+ enumerable: false,
1404
+ configurable: true
1405
+ });
1406
+ DossierSupportingProcessStartModalComponent.prototype.openModal = function (processDocumentDefinition, documentId) {
1407
+ this.documentId = documentId;
1408
+ this.documentDefinitionName = processDocumentDefinition.id.documentDefinitionId.name;
1409
+ this.processDefinitionKey = processDocumentDefinition.id.processDefinitionKey;
1410
+ this.processName = processDocumentDefinition.processName;
1411
+ this.options = new contract.FormioOptionsImpl();
1412
+ this.options.disableAlerts = true;
1413
+ var formioBeforeSubmit = function (submission, callback) {
1414
+ callback(null, submission);
1415
+ };
1416
+ this.options.setHooks(formioBeforeSubmit);
1417
+ this.loadFormDefinition();
1418
+ };
1419
+ DossierSupportingProcessStartModalComponent.prototype.onSubmit = function (submission) {
1420
+ var _this = this;
1421
+ this.formioSubmission = submission;
1422
+ this.formLinkService.onSubmit(this.processDefinitionKey, this.formAssociation.formLink.id, submission.data, this.documentId).subscribe(function (formSubmissionResult) {
1423
+ _this.modal.hide();
1424
+ _this.formSubmit.emit();
1425
+ }, function (errors) {
1426
+ _this.form.showErrors(errors);
1427
+ });
1428
+ };
1429
+ DossierSupportingProcessStartModalComponent.prototype.gotoFormLinkScreen = function () {
1430
+ this.modal.hide();
1431
+ this.router.navigate(['form-links'], { queryParams: { process: this.processDefinitionKey } });
1432
+ };
1433
+ return DossierSupportingProcessStartModalComponent;
1434
+ }());
1435
+ DossierSupportingProcessStartModalComponent.decorators = [
1436
+ { type: i0.Component, args: [{
1437
+ 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 #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",
1439
+ encapsulation: i0.ViewEncapsulation.None,
1440
+ 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
+ },] }
1442
+ ];
1443
+ DossierSupportingProcessStartModalComponent.ctorParameters = function () { return [
1444
+ { type: router.ActivatedRoute },
1445
+ { type: router.Router },
1446
+ { type: process.ProcessService },
1447
+ { type: document.DocumentService },
1448
+ { type: formLink.FormLinkService },
1449
+ { type: ngxLogger.NGXLogger }
1450
+ ]; };
1451
+ DossierSupportingProcessStartModalComponent.propDecorators = {
1452
+ form: [{ type: i0.ViewChild, args: ['form', { static: false },] }],
1453
+ modal: [{ type: i0.ViewChild, args: ['supportingProcessStartModal', { static: false },] }],
1454
+ formSubmit: [{ type: i0.Output }]
1455
+ };
1456
+
1457
+ /*
1458
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
1459
+ *
1460
+ * Licensed under EUPL, Version 1.2 (the "License");
1461
+ * you may not use this file except in compliance with the License.
1462
+ * You may obtain a copy of the License at
1463
+ *
1464
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
1465
+ *
1466
+ * Unless required by applicable law or agreed to in writing, software
1467
+ * distributed under the License is distributed on an "AS IS" basis,
1468
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1469
+ * See the License for the specific language governing permissions and
1470
+ * limitations under the License.
1471
+ */
1472
+ var ɵ0$1 = contract.HttpLoaderFactory;
1473
+ var DossierModule = /** @class */ (function () {
1474
+ function DossierModule() {
1475
+ }
1476
+ DossierModule.forRoot = function (tabsFactory) {
1477
+ return {
1478
+ ngModule: DossierModule,
1479
+ providers: [
1480
+ DossierService,
1481
+ TabService,
1482
+ {
1483
+ provide: TAB_MAP,
1484
+ useFactory: tabsFactory
1485
+ },
1486
+ {
1487
+ provide: i0.ANALYZE_FOR_ENTRY_COMPONENTS,
1488
+ useValue: Array.from(tabsFactory().values()),
1489
+ multi: true
1490
+ }
1491
+ ]
1492
+ };
1493
+ };
1494
+ return DossierModule;
1495
+ }());
1496
+ DossierModule.decorators = [
1497
+ { type: i0.NgModule, args: [{
1498
+ declarations: [
1499
+ DossierListComponent,
1500
+ DossierDetailComponent,
1501
+ DossierDetailTabSummaryComponent,
1502
+ DossierDetailTabProgressComponent,
1503
+ DossierDetailTabAuditComponent,
1504
+ DossierDetailTabDocumentsComponent,
1505
+ DossierUpdateComponent,
1506
+ DossierProcessStartModalComponent,
1507
+ DossierSupportingProcessStartModalComponent
1508
+ ],
1509
+ imports: [
1510
+ common.CommonModule,
1511
+ DossierRoutingModule,
1512
+ components.ListModule,
1513
+ components.WidgetModule,
1514
+ components.BpmnJsDiagramModule,
1515
+ components.TimelineModule,
1516
+ components.CamundaFormModule,
1517
+ process.ProcessModule,
1518
+ components.FilterSidebarModule,
1519
+ ngBootstrap.NgbButtonsModule,
1520
+ components.DataListModule,
1521
+ forms.FormsModule,
1522
+ form.FormModule,
1523
+ components.FormIoModule,
1524
+ components.ModalModule,
1525
+ components.SpinnerModule,
1526
+ core.TranslateModule.forRoot({
1527
+ loader: {
1528
+ provide: core.TranslateLoader,
1529
+ useFactory: ɵ0$1,
1530
+ deps: [http.HttpClient]
1531
+ }
1532
+ }),
1533
+ task.TaskModule,
1534
+ components.ModalModule,
1535
+ ngBootstrap.NgbTooltipModule,
1536
+ components.UploaderModule,
1537
+ components.DropzoneModule
1538
+ ],
1539
+ exports: [
1540
+ DossierListComponent,
1541
+ DossierDetailComponent
1542
+ ],
1543
+ entryComponents: [
1544
+ DossierDetailTabSummaryComponent,
1545
+ DossierDetailTabProgressComponent,
1546
+ DossierDetailTabAuditComponent,
1547
+ DossierDetailTabDocumentsComponent
1548
+ ]
1549
+ },] }
1550
+ ];
1551
+
1552
+ /*
1553
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
1554
+ *
1555
+ * Licensed under EUPL, Version 1.2 (the "License");
1556
+ * you may not use this file except in compliance with the License.
1557
+ * You may obtain a copy of the License at
1558
+ *
1559
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
1560
+ *
1561
+ * Unless required by applicable law or agreed to in writing, software
1562
+ * distributed under the License is distributed on an "AS IS" basis,
1563
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1564
+ * See the License for the specific language governing permissions and
1565
+ * limitations under the License.
1566
+ */
1567
+
1568
+ /**
1569
+ * Generated bundle index. Do not edit.
1570
+ */
1571
+
1572
+ exports.DEFAULT_TABS = DEFAULT_TABS;
1573
+ exports.DossierDetailComponent = DossierDetailComponent;
1574
+ exports.DossierDetailTabAuditComponent = DossierDetailTabAuditComponent;
1575
+ exports.DossierDetailTabDocumentsComponent = DossierDetailTabDocumentsComponent;
1576
+ exports.DossierDetailTabProgressComponent = DossierDetailTabProgressComponent;
1577
+ exports.DossierDetailTabSummaryComponent = DossierDetailTabSummaryComponent;
1578
+ exports.DossierListComponent = DossierListComponent;
1579
+ exports.DossierModule = DossierModule;
1580
+ exports.DossierService = DossierService;
1581
+ exports.TAB_MAP = TAB_MAP;
1582
+ exports.TabService = TabService;
1583
+ exports.ɵ0 = ɵ0$1;
1584
+ exports.ɵa = DossierUpdateComponent;
1585
+ exports.ɵb = DossierProcessStartModalComponent;
1586
+ exports.ɵc = DossierSupportingProcessStartModalComponent;
1587
+ exports.ɵd = DossierRoutingModule;
1588
+
1589
+ Object.defineProperty(exports, '__esModule', { value: true });
1590
+
1591
+ })));
1592
+ //# sourceMappingURL=valtimo-dossier.umd.js.map