@valtimo/dossier 4.23.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/dossier-detail/dossier-detail.component.mjs +115 -0
- package/esm2020/lib/dossier-detail/tab/audit/audit.component.mjs +76 -0
- package/esm2020/lib/dossier-detail/tab/contact-moments/contact-moments.component.mjs +86 -0
- package/esm2020/lib/dossier-detail/tab/documents/documents.component.mjs +115 -0
- package/esm2020/lib/dossier-detail/tab/progress/progress.component.mjs +48 -0
- package/esm2020/lib/dossier-detail/tab/summary/summary.component.mjs +117 -0
- package/esm2020/lib/dossier-detail-tab-enum.mjs +24 -0
- package/esm2020/lib/dossier-list/dossier-list.component.mjs +218 -0
- package/esm2020/lib/dossier-process-start-modal/dossier-process-start-modal.component.mjs +125 -0
- package/esm2020/lib/dossier-routing.module.mjs +62 -0
- package/esm2020/lib/dossier-supporting-process-start-modal/dossier-supporting-process-start-modal.component.mjs +122 -0
- package/esm2020/lib/dossier-update/dossier-update.component.mjs +113 -0
- package/esm2020/lib/dossier.config.mjs +29 -0
- package/esm2020/lib/dossier.module.mjs +179 -0
- package/esm2020/lib/dossier.service.mjs +51 -0
- package/esm2020/lib/models/index.mjs +19 -0
- package/esm2020/lib/models/tabs.model.mjs +104 -0
- package/esm2020/lib/tab.service.mjs +45 -0
- package/esm2020/public_api.mjs +32 -0
- package/esm2020/valtimo-dossier.mjs +5 -0
- package/fesm2015/valtimo-dossier.mjs +1519 -0
- package/fesm2015/valtimo-dossier.mjs.map +1 -0
- package/fesm2020/valtimo-dossier.mjs +1535 -0
- package/fesm2020/valtimo-dossier.mjs.map +1 -0
- package/lib/dossier-detail/dossier-detail.component.d.ts +4 -0
- package/lib/dossier-detail/dossier-detail.component.d.ts.map +1 -0
- package/lib/dossier-detail/tab/audit/audit.component.d.ts +4 -0
- package/lib/dossier-detail/tab/audit/audit.component.d.ts.map +1 -0
- package/lib/dossier-detail/tab/contact-moments/contact-moments.component.d.ts +4 -0
- package/lib/dossier-detail/tab/contact-moments/contact-moments.component.d.ts.map +1 -0
- package/lib/dossier-detail/tab/documents/documents.component.d.ts +4 -0
- package/lib/dossier-detail/tab/documents/documents.component.d.ts.map +1 -0
- package/lib/dossier-detail/tab/progress/progress.component.d.ts +4 -0
- package/lib/dossier-detail/tab/progress/progress.component.d.ts.map +1 -0
- package/lib/dossier-detail/tab/summary/summary.component.d.ts +4 -0
- package/lib/dossier-detail/tab/summary/summary.component.d.ts.map +1 -0
- package/lib/dossier-detail-tab-enum.d.ts +1 -0
- package/lib/dossier-detail-tab-enum.d.ts.map +1 -0
- package/lib/dossier-list/dossier-list.component.d.ts +4 -0
- package/lib/dossier-list/dossier-list.component.d.ts.map +1 -0
- package/lib/dossier-process-start-modal/dossier-process-start-modal.component.d.ts +4 -0
- package/lib/dossier-process-start-modal/dossier-process-start-modal.component.d.ts.map +1 -0
- package/lib/dossier-routing.module.d.ts +7 -0
- package/lib/dossier-routing.module.d.ts.map +1 -0
- package/lib/dossier-supporting-process-start-modal/dossier-supporting-process-start-modal.component.d.ts +4 -0
- package/lib/dossier-supporting-process-start-modal/dossier-supporting-process-start-modal.component.d.ts.map +1 -0
- package/lib/dossier-update/dossier-update.component.d.ts +4 -0
- package/lib/dossier-update/dossier-update.component.d.ts.map +1 -0
- package/lib/dossier.config.d.ts +1 -0
- package/lib/dossier.config.d.ts.map +1 -0
- package/lib/dossier.module.d.ts +25 -0
- package/lib/dossier.module.d.ts.map +1 -0
- package/lib/dossier.service.d.ts +4 -0
- package/lib/dossier.service.d.ts.map +1 -0
- package/lib/models/index.d.ts +1 -0
- package/lib/models/index.d.ts.map +1 -0
- package/lib/models/tabs.model.d.ts +1 -0
- package/lib/models/tabs.model.d.ts.map +1 -0
- package/lib/tab.service.d.ts +4 -0
- package/lib/tab.service.d.ts.map +1 -0
- package/package.json +23 -11
- package/public_api.d.ts +1 -0
- package/public_api.d.ts.map +1 -0
- package/valtimo-dossier.d.ts +2 -4
- package/valtimo-dossier.d.ts.map +1 -0
- package/bundles/valtimo-dossier.umd.js +0 -1915
- package/bundles/valtimo-dossier.umd.js.map +0 -1
- package/bundles/valtimo-dossier.umd.min.js +0 -2
- package/bundles/valtimo-dossier.umd.min.js.map +0 -1
- package/esm2015/lib/dossier-detail/dossier-detail.component.js +0 -125
- package/esm2015/lib/dossier-detail/tab/audit/audit.component.js +0 -79
- package/esm2015/lib/dossier-detail/tab/contact-moments/contact-moments.component.js +0 -90
- package/esm2015/lib/dossier-detail/tab/documents/documents.component.js +0 -122
- package/esm2015/lib/dossier-detail/tab/progress/progress.component.js +0 -49
- package/esm2015/lib/dossier-detail/tab/summary/summary.component.js +0 -126
- package/esm2015/lib/dossier-detail-tab-enum.js +0 -24
- package/esm2015/lib/dossier-list/dossier-list.component.js +0 -216
- package/esm2015/lib/dossier-process-start-modal/dossier-process-start-modal.component.js +0 -130
- package/esm2015/lib/dossier-routing.module.js +0 -58
- package/esm2015/lib/dossier-supporting-process-start-modal/dossier-supporting-process-start-modal.component.js +0 -125
- package/esm2015/lib/dossier-update/dossier-update.component.js +0 -121
- package/esm2015/lib/dossier.config.js +0 -29
- package/esm2015/lib/dossier.module.js +0 -121
- package/esm2015/lib/dossier.service.js +0 -53
- package/esm2015/lib/models/index.js +0 -19
- package/esm2015/lib/models/tabs.model.js +0 -104
- package/esm2015/lib/tab.service.js +0 -44
- package/esm2015/public_api.js +0 -32
- package/esm2015/valtimo-dossier.js +0 -9
- package/fesm2015/valtimo-dossier.js +0 -1548
- package/fesm2015/valtimo-dossier.js.map +0 -1
- package/valtimo-dossier.metadata.json +0 -1
|
@@ -1,1915 +0,0 @@
|
|
|
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('@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
|
-
*/
|
|
146
|
-
|
|
147
|
-
/*! *****************************************************************************
|
|
148
|
-
Copyright (c) Microsoft Corporation.
|
|
149
|
-
|
|
150
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
151
|
-
purpose with or without fee is hereby granted.
|
|
152
|
-
|
|
153
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
154
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
155
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
156
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
157
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
158
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
159
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
160
|
-
***************************************************************************** */
|
|
161
|
-
/* global Reflect, Promise */
|
|
162
|
-
var extendStatics = function (d, b) {
|
|
163
|
-
extendStatics = Object.setPrototypeOf ||
|
|
164
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
165
|
-
function (d, b) { for (var p in b)
|
|
166
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
167
|
-
d[p] = b[p]; };
|
|
168
|
-
return extendStatics(d, b);
|
|
169
|
-
};
|
|
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");
|
|
173
|
-
extendStatics(d, b);
|
|
174
|
-
function __() { this.constructor = d; }
|
|
175
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
176
|
-
}
|
|
177
|
-
var __assign = function () {
|
|
178
|
-
__assign = Object.assign || function __assign(t) {
|
|
179
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
180
|
-
s = arguments[i];
|
|
181
|
-
for (var p in s)
|
|
182
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
183
|
-
t[p] = s[p];
|
|
184
|
-
}
|
|
185
|
-
return t;
|
|
186
|
-
};
|
|
187
|
-
return __assign.apply(this, arguments);
|
|
188
|
-
};
|
|
189
|
-
function __rest(s, e) {
|
|
190
|
-
var t = {};
|
|
191
|
-
for (var p in s)
|
|
192
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
193
|
-
t[p] = s[p];
|
|
194
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
195
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
196
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
197
|
-
t[p[i]] = s[p[i]];
|
|
198
|
-
}
|
|
199
|
-
return t;
|
|
200
|
-
}
|
|
201
|
-
function __decorate(decorators, target, key, desc) {
|
|
202
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
203
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
204
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
205
|
-
else
|
|
206
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
207
|
-
if (d = decorators[i])
|
|
208
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
209
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
210
|
-
}
|
|
211
|
-
function __param(paramIndex, decorator) {
|
|
212
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
213
|
-
}
|
|
214
|
-
function __metadata(metadataKey, metadataValue) {
|
|
215
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
216
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
217
|
-
}
|
|
218
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
219
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
220
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
221
|
-
function fulfilled(value) { try {
|
|
222
|
-
step(generator.next(value));
|
|
223
|
-
}
|
|
224
|
-
catch (e) {
|
|
225
|
-
reject(e);
|
|
226
|
-
} }
|
|
227
|
-
function rejected(value) { try {
|
|
228
|
-
step(generator["throw"](value));
|
|
229
|
-
}
|
|
230
|
-
catch (e) {
|
|
231
|
-
reject(e);
|
|
232
|
-
} }
|
|
233
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
234
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
|
-
function __generator(thisArg, body) {
|
|
238
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
239
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
240
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
241
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
242
|
-
function step(op) {
|
|
243
|
-
if (f)
|
|
244
|
-
throw new TypeError("Generator is already executing.");
|
|
245
|
-
while (_)
|
|
246
|
-
try {
|
|
247
|
-
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)
|
|
248
|
-
return t;
|
|
249
|
-
if (y = 0, t)
|
|
250
|
-
op = [op[0] & 2, t.value];
|
|
251
|
-
switch (op[0]) {
|
|
252
|
-
case 0:
|
|
253
|
-
case 1:
|
|
254
|
-
t = op;
|
|
255
|
-
break;
|
|
256
|
-
case 4:
|
|
257
|
-
_.label++;
|
|
258
|
-
return { value: op[1], done: false };
|
|
259
|
-
case 5:
|
|
260
|
-
_.label++;
|
|
261
|
-
y = op[1];
|
|
262
|
-
op = [0];
|
|
263
|
-
continue;
|
|
264
|
-
case 7:
|
|
265
|
-
op = _.ops.pop();
|
|
266
|
-
_.trys.pop();
|
|
267
|
-
continue;
|
|
268
|
-
default:
|
|
269
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
270
|
-
_ = 0;
|
|
271
|
-
continue;
|
|
272
|
-
}
|
|
273
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
274
|
-
_.label = op[1];
|
|
275
|
-
break;
|
|
276
|
-
}
|
|
277
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
278
|
-
_.label = t[1];
|
|
279
|
-
t = op;
|
|
280
|
-
break;
|
|
281
|
-
}
|
|
282
|
-
if (t && _.label < t[2]) {
|
|
283
|
-
_.label = t[2];
|
|
284
|
-
_.ops.push(op);
|
|
285
|
-
break;
|
|
286
|
-
}
|
|
287
|
-
if (t[2])
|
|
288
|
-
_.ops.pop();
|
|
289
|
-
_.trys.pop();
|
|
290
|
-
continue;
|
|
291
|
-
}
|
|
292
|
-
op = body.call(thisArg, _);
|
|
293
|
-
}
|
|
294
|
-
catch (e) {
|
|
295
|
-
op = [6, e];
|
|
296
|
-
y = 0;
|
|
297
|
-
}
|
|
298
|
-
finally {
|
|
299
|
-
f = t = 0;
|
|
300
|
-
}
|
|
301
|
-
if (op[0] & 5)
|
|
302
|
-
throw op[1];
|
|
303
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
307
|
-
if (k2 === undefined)
|
|
308
|
-
k2 = k;
|
|
309
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
310
|
-
}) : (function (o, m, k, k2) {
|
|
311
|
-
if (k2 === undefined)
|
|
312
|
-
k2 = k;
|
|
313
|
-
o[k2] = m[k];
|
|
314
|
-
});
|
|
315
|
-
function __exportStar(m, o) {
|
|
316
|
-
for (var p in m)
|
|
317
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
318
|
-
__createBinding(o, m, p);
|
|
319
|
-
}
|
|
320
|
-
function __values(o) {
|
|
321
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
322
|
-
if (m)
|
|
323
|
-
return m.call(o);
|
|
324
|
-
if (o && typeof o.length === "number")
|
|
325
|
-
return {
|
|
326
|
-
next: function () {
|
|
327
|
-
if (o && i >= o.length)
|
|
328
|
-
o = void 0;
|
|
329
|
-
return { value: o && o[i++], done: !o };
|
|
330
|
-
}
|
|
331
|
-
};
|
|
332
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
333
|
-
}
|
|
334
|
-
function __read(o, n) {
|
|
335
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
336
|
-
if (!m)
|
|
337
|
-
return o;
|
|
338
|
-
var i = m.call(o), r, ar = [], e;
|
|
339
|
-
try {
|
|
340
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
341
|
-
ar.push(r.value);
|
|
342
|
-
}
|
|
343
|
-
catch (error) {
|
|
344
|
-
e = { error: error };
|
|
345
|
-
}
|
|
346
|
-
finally {
|
|
347
|
-
try {
|
|
348
|
-
if (r && !r.done && (m = i["return"]))
|
|
349
|
-
m.call(i);
|
|
350
|
-
}
|
|
351
|
-
finally {
|
|
352
|
-
if (e)
|
|
353
|
-
throw e.error;
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
return ar;
|
|
357
|
-
}
|
|
358
|
-
/** @deprecated */
|
|
359
|
-
function __spread() {
|
|
360
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
361
|
-
ar = ar.concat(__read(arguments[i]));
|
|
362
|
-
return ar;
|
|
363
|
-
}
|
|
364
|
-
/** @deprecated */
|
|
365
|
-
function __spreadArrays() {
|
|
366
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
367
|
-
s += arguments[i].length;
|
|
368
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
369
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
370
|
-
r[k] = a[j];
|
|
371
|
-
return r;
|
|
372
|
-
}
|
|
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
|
-
}
|
|
384
|
-
function __await(v) {
|
|
385
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
386
|
-
}
|
|
387
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
388
|
-
if (!Symbol.asyncIterator)
|
|
389
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
390
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
391
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
392
|
-
function verb(n) { if (g[n])
|
|
393
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
394
|
-
function resume(n, v) { try {
|
|
395
|
-
step(g[n](v));
|
|
396
|
-
}
|
|
397
|
-
catch (e) {
|
|
398
|
-
settle(q[0][3], e);
|
|
399
|
-
} }
|
|
400
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
401
|
-
function fulfill(value) { resume("next", value); }
|
|
402
|
-
function reject(value) { resume("throw", value); }
|
|
403
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
404
|
-
resume(q[0][0], q[0][1]); }
|
|
405
|
-
}
|
|
406
|
-
function __asyncDelegator(o) {
|
|
407
|
-
var i, p;
|
|
408
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
409
|
-
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; }
|
|
410
|
-
}
|
|
411
|
-
function __asyncValues(o) {
|
|
412
|
-
if (!Symbol.asyncIterator)
|
|
413
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
414
|
-
var m = o[Symbol.asyncIterator], i;
|
|
415
|
-
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);
|
|
416
|
-
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); }); }; }
|
|
417
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
418
|
-
}
|
|
419
|
-
function __makeTemplateObject(cooked, raw) {
|
|
420
|
-
if (Object.defineProperty) {
|
|
421
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
422
|
-
}
|
|
423
|
-
else {
|
|
424
|
-
cooked.raw = raw;
|
|
425
|
-
}
|
|
426
|
-
return cooked;
|
|
427
|
-
}
|
|
428
|
-
;
|
|
429
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
430
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
431
|
-
}) : function (o, v) {
|
|
432
|
-
o["default"] = v;
|
|
433
|
-
};
|
|
434
|
-
function __importStar(mod) {
|
|
435
|
-
if (mod && mod.__esModule)
|
|
436
|
-
return mod;
|
|
437
|
-
var result = {};
|
|
438
|
-
if (mod != null)
|
|
439
|
-
for (var k in mod)
|
|
440
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
441
|
-
__createBinding(result, mod, k);
|
|
442
|
-
__setModuleDefault(result, mod);
|
|
443
|
-
return result;
|
|
444
|
-
}
|
|
445
|
-
function __importDefault(mod) {
|
|
446
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
447
|
-
}
|
|
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);
|
|
454
|
-
}
|
|
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;
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
/*
|
|
466
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
467
|
-
*
|
|
468
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
469
|
-
* you may not use this file except in compliance with the License.
|
|
470
|
-
* You may obtain a copy of the License at
|
|
471
|
-
*
|
|
472
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
473
|
-
*
|
|
474
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
475
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
476
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
477
|
-
* See the License for the specific language governing permissions and
|
|
478
|
-
* limitations under the License.
|
|
479
|
-
*/
|
|
480
|
-
(function (DefaultTabs) {
|
|
481
|
-
DefaultTabs["summary"] = "summary";
|
|
482
|
-
DefaultTabs["progress"] = "progress";
|
|
483
|
-
DefaultTabs["audit"] = "audit";
|
|
484
|
-
DefaultTabs["documents"] = "documents";
|
|
485
|
-
DefaultTabs["contactMoments"] = "contact-moments";
|
|
486
|
-
})(exports.DefaultTabs || (exports.DefaultTabs = {}));
|
|
487
|
-
|
|
488
|
-
/*
|
|
489
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
490
|
-
*
|
|
491
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
492
|
-
* you may not use this file except in compliance with the License.
|
|
493
|
-
* You may obtain a copy of the License at
|
|
494
|
-
*
|
|
495
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
496
|
-
*
|
|
497
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
498
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
499
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
500
|
-
* See the License for the specific language governing permissions and
|
|
501
|
-
* limitations under the License.
|
|
502
|
-
*/
|
|
503
|
-
var DossierService = /** @class */ (function () {
|
|
504
|
-
function DossierService(configService) {
|
|
505
|
-
this.configService = configService;
|
|
506
|
-
this.definitions = configService.config.definitions;
|
|
507
|
-
}
|
|
508
|
-
DossierService.prototype.getImplementationEnvironmentDefinitions = function (name) {
|
|
509
|
-
return this.definitions.dossiers.find(function (definition) { return definition.name === name; });
|
|
510
|
-
};
|
|
511
|
-
DossierService.prototype.getDefinitionColumns = function (definitionNameId) {
|
|
512
|
-
var config = this.configService.config;
|
|
513
|
-
var customDefinitionTable = config.customDefinitionTables[definitionNameId];
|
|
514
|
-
return customDefinitionTable || config.defaultDefinitionTable;
|
|
515
|
-
};
|
|
516
|
-
DossierService.prototype.getInitialSortState = function (columns) {
|
|
517
|
-
var defaultColumn = columns.find(function (column) { return column.default; });
|
|
518
|
-
return {
|
|
519
|
-
isSorting: false,
|
|
520
|
-
state: {
|
|
521
|
-
name: defaultColumn ? defaultColumn.propertyName : columns[0].propertyName,
|
|
522
|
-
direction: 'DESC',
|
|
523
|
-
},
|
|
524
|
-
};
|
|
525
|
-
};
|
|
526
|
-
return DossierService;
|
|
527
|
-
}());
|
|
528
|
-
DossierService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DossierService_Factory() { return new DossierService(i0.ɵɵinject(i1.ConfigService)); }, token: DossierService, providedIn: "root" });
|
|
529
|
-
DossierService.decorators = [
|
|
530
|
-
{ type: i0.Injectable, args: [{
|
|
531
|
-
providedIn: 'root',
|
|
532
|
-
},] }
|
|
533
|
-
];
|
|
534
|
-
DossierService.ctorParameters = function () { return [
|
|
535
|
-
{ type: i1.ConfigService }
|
|
536
|
-
]; };
|
|
537
|
-
|
|
538
|
-
/*
|
|
539
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
540
|
-
*
|
|
541
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
542
|
-
* you may not use this file except in compliance with the License.
|
|
543
|
-
* You may obtain a copy of the License at
|
|
544
|
-
*
|
|
545
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
546
|
-
*
|
|
547
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
548
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
549
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
550
|
-
* See the License for the specific language governing permissions and
|
|
551
|
-
* limitations under the License.
|
|
552
|
-
*/
|
|
553
|
-
var moment = moment_;
|
|
554
|
-
moment.locale(localStorage.getItem('langKey') || '');
|
|
555
|
-
var DossierListComponent = /** @class */ (function () {
|
|
556
|
-
function DossierListComponent(route, router, documentService, translateService, dossierService) {
|
|
557
|
-
this.route = route;
|
|
558
|
-
this.router = router;
|
|
559
|
-
this.documentService = documentService;
|
|
560
|
-
this.translateService = translateService;
|
|
561
|
-
this.dossierService = dossierService;
|
|
562
|
-
this.documentDefinitionName = '';
|
|
563
|
-
this.showCreateDocument = false;
|
|
564
|
-
this.items = [];
|
|
565
|
-
this.fields = [];
|
|
566
|
-
this.processDefinitionListFields = [];
|
|
567
|
-
this.processDocumentDefinitions = [];
|
|
568
|
-
this.pagination = {
|
|
569
|
-
collectionSize: 0,
|
|
570
|
-
page: 1,
|
|
571
|
-
size: 10,
|
|
572
|
-
maxPaginationItemSize: 5,
|
|
573
|
-
sort: undefined,
|
|
574
|
-
};
|
|
575
|
-
this.selectedProcessDocumentDefinition = null;
|
|
576
|
-
this.modalListenerAdded = false;
|
|
577
|
-
}
|
|
578
|
-
DossierListComponent.prototype.ngOnInit = function () {
|
|
579
|
-
this.doInit();
|
|
580
|
-
this.routeEvent(this.router);
|
|
581
|
-
this.modalListenerAdded = false;
|
|
582
|
-
};
|
|
583
|
-
DossierListComponent.prototype.ngOnDestroy = function () {
|
|
584
|
-
this.routerSubscription.unsubscribe();
|
|
585
|
-
this.translationSubscription.unsubscribe();
|
|
586
|
-
};
|
|
587
|
-
DossierListComponent.prototype.paginationSet = function () {
|
|
588
|
-
this.getData();
|
|
589
|
-
};
|
|
590
|
-
DossierListComponent.prototype.routeEvent = function (router$1) {
|
|
591
|
-
var _this = this;
|
|
592
|
-
this.routerSubscription = router$1.events.subscribe(function (e) {
|
|
593
|
-
if (e instanceof router.NavigationEnd) {
|
|
594
|
-
_this.doInit();
|
|
595
|
-
_this.getData();
|
|
596
|
-
}
|
|
597
|
-
});
|
|
598
|
-
};
|
|
599
|
-
DossierListComponent.prototype.doInit = function () {
|
|
600
|
-
var documentDefinitionName = this.route.snapshot.paramMap.get('documentDefinitionName') || '';
|
|
601
|
-
var columns = this.dossierService.getDefinitionColumns(documentDefinitionName);
|
|
602
|
-
this.documentDefinitionName = documentDefinitionName;
|
|
603
|
-
this.initialSortState = this.dossierService.getInitialSortState(columns);
|
|
604
|
-
this.openTranslationSubscription(columns);
|
|
605
|
-
};
|
|
606
|
-
DossierListComponent.prototype.openTranslationSubscription = function (columns) {
|
|
607
|
-
var _this = this;
|
|
608
|
-
this.translationSubscription = rxjs.combineLatest(columns.map(function (column) { return _this.translateService.stream("fieldLabels." + column.translationKey); })).subscribe(function (labels) {
|
|
609
|
-
_this.fields = columns.map(function (column, index) { return (Object.assign({ key: column.propertyName, label: labels[index], sortable: column.sortable }, (column.viewType && { viewType: column.viewType }))); });
|
|
610
|
-
});
|
|
611
|
-
};
|
|
612
|
-
DossierListComponent.prototype.getData = function () {
|
|
613
|
-
this.findDocumentDefinition(this.documentDefinitionName);
|
|
614
|
-
if (this.hasCachedSearchRequest()) {
|
|
615
|
-
var documentSearchRequest = this.getCachedSearch();
|
|
616
|
-
this.globalSearchFilter = documentSearchRequest.globalSearchFilter;
|
|
617
|
-
this.sequence = documentSearchRequest.sequence;
|
|
618
|
-
this.createdBy = documentSearchRequest.createdBy;
|
|
619
|
-
this.findDocuments(documentSearchRequest);
|
|
620
|
-
}
|
|
621
|
-
else {
|
|
622
|
-
this.doSearch();
|
|
623
|
-
}
|
|
624
|
-
this.getAllAssociatedProcessDefinitions();
|
|
625
|
-
};
|
|
626
|
-
DossierListComponent.prototype.doSearch = function () {
|
|
627
|
-
var documentSearchRequest = this.buildDocumentSearchRequest();
|
|
628
|
-
this.findDocuments(documentSearchRequest);
|
|
629
|
-
};
|
|
630
|
-
DossierListComponent.prototype.findDocuments = function (documentSearchRequest) {
|
|
631
|
-
var _this = this;
|
|
632
|
-
return this.documentService.getDocuments(documentSearchRequest).subscribe(function (documents) {
|
|
633
|
-
_this.documents = documents;
|
|
634
|
-
_this.transformDocuments(_this.documents.content);
|
|
635
|
-
_this.pagination.collectionSize = _this.documents.totalElements;
|
|
636
|
-
_this.storeSearch(documentSearchRequest);
|
|
637
|
-
});
|
|
638
|
-
};
|
|
639
|
-
DossierListComponent.prototype.getAllAssociatedProcessDefinitions = function () {
|
|
640
|
-
var _this = this;
|
|
641
|
-
this.documentService
|
|
642
|
-
.findProcessDocumentDefinitions(this.documentDefinitionName)
|
|
643
|
-
.subscribe(function (processDocumentDefinitions) {
|
|
644
|
-
_this.processDocumentDefinitions = processDocumentDefinitions.filter(function (processDocumentDefinition) { return processDocumentDefinition.canInitializeDocument; });
|
|
645
|
-
_this.processDefinitionListFields = [
|
|
646
|
-
{
|
|
647
|
-
key: 'processName',
|
|
648
|
-
label: 'Proces',
|
|
649
|
-
},
|
|
650
|
-
];
|
|
651
|
-
});
|
|
652
|
-
};
|
|
653
|
-
DossierListComponent.prototype.getCachedSearch = function () {
|
|
654
|
-
var json = JSON.parse(this.getCachedDocumentSearchRequest());
|
|
655
|
-
return new document.DocumentSearchRequestImpl(json.definitionName, this.pagination.page - 1, this.pagination.size, json.sequence, json.createdBy, json.globalSearchFilter, json.sort);
|
|
656
|
-
};
|
|
657
|
-
DossierListComponent.prototype.buildDocumentSearchRequest = function () {
|
|
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);
|
|
661
|
-
};
|
|
662
|
-
DossierListComponent.prototype.storeSearch = function (documentSearchRequest) {
|
|
663
|
-
localStorage.setItem(this.getCachedKey(), JSON.stringify(documentSearchRequest));
|
|
664
|
-
};
|
|
665
|
-
DossierListComponent.prototype.getCachedDocumentSearchRequest = function () {
|
|
666
|
-
return localStorage.getItem(this.getCachedKey()) || '';
|
|
667
|
-
};
|
|
668
|
-
DossierListComponent.prototype.hasCachedSearchRequest = function () {
|
|
669
|
-
return localStorage.getItem(this.getCachedKey()) !== null;
|
|
670
|
-
};
|
|
671
|
-
DossierListComponent.prototype.getCachedKey = function () {
|
|
672
|
-
return 'list-search-' + this.documentDefinitionName;
|
|
673
|
-
};
|
|
674
|
-
DossierListComponent.prototype.rowClick = function (document) {
|
|
675
|
-
this.router.navigate([
|
|
676
|
-
"/dossiers/" + this.documentDefinitionName + "/document/" + document.id + "/" + exports.DefaultTabs.summary,
|
|
677
|
-
]);
|
|
678
|
-
};
|
|
679
|
-
DossierListComponent.prototype.startDossier = function () {
|
|
680
|
-
if (this.processDocumentDefinitions.length > 1) {
|
|
681
|
-
$('#startProcess').modal('show');
|
|
682
|
-
}
|
|
683
|
-
else {
|
|
684
|
-
this.selectedProcessDocumentDefinition = this.processDocumentDefinitions[0];
|
|
685
|
-
this.showStartProcessModal();
|
|
686
|
-
}
|
|
687
|
-
};
|
|
688
|
-
DossierListComponent.prototype.showStartProcessModal = function () {
|
|
689
|
-
if (this.selectedProcessDocumentDefinition !== null) {
|
|
690
|
-
this.processStart.openModal(this.selectedProcessDocumentDefinition);
|
|
691
|
-
this.selectedProcessDocumentDefinition = null;
|
|
692
|
-
}
|
|
693
|
-
};
|
|
694
|
-
DossierListComponent.prototype.selectProcess = function (processDocumentDefinition) {
|
|
695
|
-
var modal = $('#startProcess');
|
|
696
|
-
if (!this.modalListenerAdded) {
|
|
697
|
-
modal.on('hidden.bs.modal', this.showStartProcessModal.bind(this));
|
|
698
|
-
this.modalListenerAdded = true;
|
|
699
|
-
}
|
|
700
|
-
this.selectedProcessDocumentDefinition = processDocumentDefinition;
|
|
701
|
-
modal.modal('hide');
|
|
702
|
-
};
|
|
703
|
-
DossierListComponent.prototype.findDocumentDefinition = function (documentDefinitionName) {
|
|
704
|
-
var _this = this;
|
|
705
|
-
this.documentService.getDocumentDefinition(documentDefinitionName).subscribe(function (definition) {
|
|
706
|
-
_this.schema = definition.schema;
|
|
707
|
-
});
|
|
708
|
-
};
|
|
709
|
-
DossierListComponent.prototype.transformDocuments = function (documentsContent) {
|
|
710
|
-
this.items = documentsContent.map(function (document) {
|
|
711
|
-
var content = document.content, others = __rest(document, ["content"]);
|
|
712
|
-
return Object.assign(Object.assign({}, content), others);
|
|
713
|
-
});
|
|
714
|
-
};
|
|
715
|
-
DossierListComponent.prototype.paginationClicked = function (page) {
|
|
716
|
-
this.pagination.page = page;
|
|
717
|
-
this.doSearch();
|
|
718
|
-
};
|
|
719
|
-
DossierListComponent.prototype.sortChanged = function (sortState) {
|
|
720
|
-
this.pagination.sort = sortState;
|
|
721
|
-
this.doSearch();
|
|
722
|
-
};
|
|
723
|
-
DossierListComponent.prototype.getInitialSortState = function () {
|
|
724
|
-
if (this.hasCachedSearchRequest()) {
|
|
725
|
-
var cachedRequest = JSON.parse(this.getCachedDocumentSearchRequest());
|
|
726
|
-
return cachedRequest.sort ? cachedRequest.sort : this.initialSortState;
|
|
727
|
-
}
|
|
728
|
-
return this.initialSortState;
|
|
729
|
-
};
|
|
730
|
-
return DossierListComponent;
|
|
731
|
-
}());
|
|
732
|
-
DossierListComponent.decorators = [
|
|
733
|
-
{ type: i0.Component, args: [{
|
|
734
|
-
selector: 'valtimo-dossier-list',
|
|
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 <i class=\"icon mdi mdi-plus mr-1\"></i>\n {{ 'Start Dossier' | translate }}\n </button>\n </div>\n\n <div\n class=\"modal fade\"\n id=\"startProcess\"\n tabindex=\"-1\"\n role=\"dialog\"\n aria-labelledby=\"startProcessLabel\"\n aria-hidden=\"true\"\n >\n <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h3 class=\"modal-title\" id=\"startProcessLabel\">\n {{ 'dashboard.startProcess.title' | translate }}\n </h3>\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">×</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",
|
|
736
|
-
styles: [""]
|
|
737
|
-
},] }
|
|
738
|
-
];
|
|
739
|
-
DossierListComponent.ctorParameters = function () { return [
|
|
740
|
-
{ type: router.ActivatedRoute },
|
|
741
|
-
{ type: router.Router },
|
|
742
|
-
{ type: document.DocumentService },
|
|
743
|
-
{ type: core.TranslateService },
|
|
744
|
-
{ type: DossierService }
|
|
745
|
-
]; };
|
|
746
|
-
DossierListComponent.propDecorators = {
|
|
747
|
-
processStart: [{ type: i0.ViewChild, args: ['processStartModal',] }]
|
|
748
|
-
};
|
|
749
|
-
|
|
750
|
-
var moment$1 = moment_;
|
|
751
|
-
moment$1.locale(localStorage.getItem('langKey') || '');
|
|
752
|
-
moment$1.defaultFormat = 'DD MMM YYYY HH:mm';
|
|
753
|
-
var DossierDetailTabSummaryComponent = /** @class */ (function () {
|
|
754
|
-
function DossierDetailTabSummaryComponent(router, documentService, taskService, processService, el, renderer, route, formService, userProviderService) {
|
|
755
|
-
this.router = router;
|
|
756
|
-
this.documentService = documentService;
|
|
757
|
-
this.taskService = taskService;
|
|
758
|
-
this.processService = processService;
|
|
759
|
-
this.el = el;
|
|
760
|
-
this.renderer = renderer;
|
|
761
|
-
this.route = route;
|
|
762
|
-
this.formService = formService;
|
|
763
|
-
this.userProviderService = userProviderService;
|
|
764
|
-
this.processDocumentInstances = [];
|
|
765
|
-
this.tasks = [];
|
|
766
|
-
this.formDefinition = null;
|
|
767
|
-
this.roles = [];
|
|
768
|
-
this.snapshot = this.route.snapshot.paramMap;
|
|
769
|
-
this.documentDefinitionName = this.snapshot.get('documentDefinitionName') || '';
|
|
770
|
-
this.documentId = this.snapshot.get('documentId') || '';
|
|
771
|
-
this.options = new components.FormioOptionsImpl();
|
|
772
|
-
this.options.disableAlerts = true;
|
|
773
|
-
}
|
|
774
|
-
DossierDetailTabSummaryComponent.prototype.ngOnInit = function () {
|
|
775
|
-
this.moment = moment$1;
|
|
776
|
-
this.init();
|
|
777
|
-
};
|
|
778
|
-
DossierDetailTabSummaryComponent.prototype.init = function () {
|
|
779
|
-
var _this = this;
|
|
780
|
-
this.documentService.getDocument(this.documentId).subscribe(function (document) {
|
|
781
|
-
_this.document = document;
|
|
782
|
-
});
|
|
783
|
-
this.formService
|
|
784
|
-
.getFormDefinitionByNamePreFilled(this.documentDefinitionName + ".summary", this.documentId)
|
|
785
|
-
.subscribe(function (formDefinition) {
|
|
786
|
-
_this.formDefinition = formDefinition;
|
|
787
|
-
});
|
|
788
|
-
this.userProviderService.getUserSubject().subscribe(function (user) {
|
|
789
|
-
_this.roles = user.roles;
|
|
790
|
-
_this.tasks = [];
|
|
791
|
-
_this.loadProcessDocumentInstances(_this.documentId);
|
|
792
|
-
});
|
|
793
|
-
};
|
|
794
|
-
DossierDetailTabSummaryComponent.prototype.loadProcessDocumentInstances = function (documentId) {
|
|
795
|
-
var _this = this;
|
|
796
|
-
this.documentService
|
|
797
|
-
.findProcessDocumentInstances(documentId)
|
|
798
|
-
.subscribe(function (processDocumentInstances) {
|
|
799
|
-
_this.processDocumentInstances = processDocumentInstances;
|
|
800
|
-
_this.processDocumentInstances.forEach(function (instance) {
|
|
801
|
-
_this.loadProcessInstanceTasks(instance.id.processInstanceId);
|
|
802
|
-
});
|
|
803
|
-
});
|
|
804
|
-
};
|
|
805
|
-
DossierDetailTabSummaryComponent.prototype.loadProcessInstanceTasks = function (processInstanceId) {
|
|
806
|
-
var _this = this;
|
|
807
|
-
this.processService.getProcessInstanceTasks(processInstanceId).subscribe(function (tasks) {
|
|
808
|
-
tasks.forEach(function (task) {
|
|
809
|
-
task.createdUnix = _this.moment(task.created).unix();
|
|
810
|
-
task.created = _this.moment(task.created).format('DD MMM YYYY HH:mm');
|
|
811
|
-
task.isLocked = function () {
|
|
812
|
-
var e_1, _a;
|
|
813
|
-
var locked = true;
|
|
814
|
-
try {
|
|
815
|
-
for (var _b = __values(task.identityLinks), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
816
|
-
var link = _c.value;
|
|
817
|
-
if (link.type === 'candidate' && link.groupId) {
|
|
818
|
-
if (_this.roles.includes(link.groupId)) {
|
|
819
|
-
locked = false;
|
|
820
|
-
break;
|
|
821
|
-
}
|
|
822
|
-
}
|
|
823
|
-
}
|
|
824
|
-
}
|
|
825
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
826
|
-
finally {
|
|
827
|
-
try {
|
|
828
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
829
|
-
}
|
|
830
|
-
finally { if (e_1) throw e_1.error; }
|
|
831
|
-
}
|
|
832
|
-
return locked;
|
|
833
|
-
};
|
|
834
|
-
});
|
|
835
|
-
_this.tasks = _this.tasks.concat(tasks);
|
|
836
|
-
_this.tasks.sort(function (t1, t2) { return t2.createdUnix - t1.createdUnix; });
|
|
837
|
-
});
|
|
838
|
-
};
|
|
839
|
-
DossierDetailTabSummaryComponent.prototype.rowTaskClick = function (task) {
|
|
840
|
-
this.taskDetail.openTaskDetails(task);
|
|
841
|
-
};
|
|
842
|
-
return DossierDetailTabSummaryComponent;
|
|
843
|
-
}());
|
|
844
|
-
DossierDetailTabSummaryComponent.decorators = [
|
|
845
|
-
{ type: i0.Component, args: [{
|
|
846
|
-
selector: 'valtimo-dossier-detail-tab-summary',
|
|
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",
|
|
848
|
-
encapsulation: i0.ViewEncapsulation.None,
|
|
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}"]
|
|
850
|
-
},] }
|
|
851
|
-
];
|
|
852
|
-
DossierDetailTabSummaryComponent.ctorParameters = function () { return [
|
|
853
|
-
{ type: router.Router },
|
|
854
|
-
{ type: document.DocumentService },
|
|
855
|
-
{ type: task.TaskService },
|
|
856
|
-
{ type: process.ProcessService },
|
|
857
|
-
{ type: i0.ElementRef },
|
|
858
|
-
{ type: i0.Renderer2 },
|
|
859
|
-
{ type: router.ActivatedRoute },
|
|
860
|
-
{ type: form.FormService },
|
|
861
|
-
{ type: security.UserProviderService }
|
|
862
|
-
]; };
|
|
863
|
-
DossierDetailTabSummaryComponent.propDecorators = {
|
|
864
|
-
taskDetail: [{ type: i0.ViewChild, args: ['taskDetail',] }]
|
|
865
|
-
};
|
|
866
|
-
|
|
867
|
-
/*
|
|
868
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
869
|
-
*
|
|
870
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
871
|
-
* you may not use this file except in compliance with the License.
|
|
872
|
-
* You may obtain a copy of the License at
|
|
873
|
-
*
|
|
874
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
875
|
-
*
|
|
876
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
877
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
878
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
879
|
-
* See the License for the specific language governing permissions and
|
|
880
|
-
* limitations under the License.
|
|
881
|
-
*/
|
|
882
|
-
var DossierDetailTabProgressComponent = /** @class */ (function () {
|
|
883
|
-
function DossierDetailTabProgressComponent(route, documentService) {
|
|
884
|
-
this.route = route;
|
|
885
|
-
this.documentService = documentService;
|
|
886
|
-
var snapshot = this.route.snapshot.paramMap;
|
|
887
|
-
this.documentId = snapshot.get('documentId') || '';
|
|
888
|
-
}
|
|
889
|
-
DossierDetailTabProgressComponent.prototype.ngOnInit = function () {
|
|
890
|
-
var _this = this;
|
|
891
|
-
this.documentService
|
|
892
|
-
.findProcessDocumentInstances(this.documentId)
|
|
893
|
-
.subscribe(function (processDocumentInstances) {
|
|
894
|
-
_this.processDocumentInstances = processDocumentInstances;
|
|
895
|
-
_this.selectedProcessInstanceId = processDocumentInstances[0].id.processInstanceId;
|
|
896
|
-
});
|
|
897
|
-
};
|
|
898
|
-
DossierDetailTabProgressComponent.prototype.loadProcessInstance = function (processInstanceId) {
|
|
899
|
-
this.selectedProcessInstanceId = processInstanceId;
|
|
900
|
-
};
|
|
901
|
-
return DossierDetailTabProgressComponent;
|
|
902
|
-
}());
|
|
903
|
-
DossierDetailTabProgressComponent.decorators = [
|
|
904
|
-
{ type: i0.Component, args: [{
|
|
905
|
-
selector: 'valtimo-dossier-detail-tab-progress',
|
|
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",
|
|
907
|
-
styles: [".full-height-tab-content{height:calc(100vh - 380px);width:100%}"]
|
|
908
|
-
},] }
|
|
909
|
-
];
|
|
910
|
-
DossierDetailTabProgressComponent.ctorParameters = function () { return [
|
|
911
|
-
{ type: router.ActivatedRoute },
|
|
912
|
-
{ type: document.DocumentService }
|
|
913
|
-
]; };
|
|
914
|
-
|
|
915
|
-
/*
|
|
916
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
917
|
-
*
|
|
918
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
919
|
-
* you may not use this file except in compliance with the License.
|
|
920
|
-
* You may obtain a copy of the License at
|
|
921
|
-
*
|
|
922
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
923
|
-
*
|
|
924
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
925
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
926
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
927
|
-
* See the License for the specific language governing permissions and
|
|
928
|
-
* limitations under the License.
|
|
929
|
-
*/
|
|
930
|
-
var moment$2 = moment_;
|
|
931
|
-
moment$2.locale(localStorage.getItem('langKey') || '');
|
|
932
|
-
moment$2.defaultFormat = 'DD MMM YYYY HH:mm';
|
|
933
|
-
var DossierDetailTabAuditComponent = /** @class */ (function () {
|
|
934
|
-
function DossierDetailTabAuditComponent(route, documentService, spinnerService) {
|
|
935
|
-
this.route = route;
|
|
936
|
-
this.documentService = documentService;
|
|
937
|
-
this.spinnerService = spinnerService;
|
|
938
|
-
this.paginationClicked = new i0.EventEmitter();
|
|
939
|
-
this.defaultAuditPage = 0;
|
|
940
|
-
this.spinnerService.show('auditSpinner');
|
|
941
|
-
var snapshot = this.route.snapshot.paramMap;
|
|
942
|
-
this.documentId = snapshot.get('documentId') || '';
|
|
943
|
-
}
|
|
944
|
-
DossierDetailTabAuditComponent.getTranslationKey = function (auditEvent) {
|
|
945
|
-
var classNameArray = auditEvent.className.split('.');
|
|
946
|
-
var eventName = classNameArray[classNameArray.length - 1];
|
|
947
|
-
return 'events.' + eventName;
|
|
948
|
-
};
|
|
949
|
-
DossierDetailTabAuditComponent.prototype.ngOnInit = function () {
|
|
950
|
-
this.loadAuditPage(this.defaultAuditPage);
|
|
951
|
-
};
|
|
952
|
-
DossierDetailTabAuditComponent.prototype.loadAuditPage = function (pageNumber) {
|
|
953
|
-
var _this = this;
|
|
954
|
-
this.documentService.getAuditLog(this.documentId, pageNumber).subscribe(function (page) {
|
|
955
|
-
var timelineItems = [];
|
|
956
|
-
page.content.forEach(function (auditRecord) {
|
|
957
|
-
var occurredOn = moment$2(auditRecord.metaData.occurredOn);
|
|
958
|
-
var fromNow = occurredOn.fromNow();
|
|
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));
|
|
960
|
-
});
|
|
961
|
-
_this.timelineItems = timelineItems;
|
|
962
|
-
_this.spinnerService.hide('auditSpinner');
|
|
963
|
-
_this.pagination = page;
|
|
964
|
-
_this.pagination.number += 1;
|
|
965
|
-
});
|
|
966
|
-
};
|
|
967
|
-
DossierDetailTabAuditComponent.prototype.onChangePagination = function (page) {
|
|
968
|
-
this.paginationClicked.emit(page);
|
|
969
|
-
this.currentAuditPage = page - 1;
|
|
970
|
-
this.loadAuditPage(this.currentAuditPage);
|
|
971
|
-
};
|
|
972
|
-
return DossierDetailTabAuditComponent;
|
|
973
|
-
}());
|
|
974
|
-
DossierDetailTabAuditComponent.decorators = [
|
|
975
|
-
{ type: i0.Component, args: [{
|
|
976
|
-
selector: 'valtimo-dossier-detail-tab-audit',
|
|
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}"]
|
|
979
|
-
},] }
|
|
980
|
-
];
|
|
981
|
-
DossierDetailTabAuditComponent.ctorParameters = function () { return [
|
|
982
|
-
{ type: router.ActivatedRoute },
|
|
983
|
-
{ type: document.DocumentService },
|
|
984
|
-
{ type: ngxSpinner.NgxSpinnerService }
|
|
985
|
-
]; };
|
|
986
|
-
DossierDetailTabAuditComponent.propDecorators = {
|
|
987
|
-
paginationClicked: [{ type: i0.Output }]
|
|
988
|
-
};
|
|
989
|
-
|
|
990
|
-
var DossierDetailTabDocumentsComponent = /** @class */ (function () {
|
|
991
|
-
function DossierDetailTabDocumentsComponent(route, documentService, toastrService, uploadProviderService, downloadService, translateService, configService) {
|
|
992
|
-
var _this = this;
|
|
993
|
-
var _a, _b;
|
|
994
|
-
this.route = route;
|
|
995
|
-
this.documentService = documentService;
|
|
996
|
-
this.toastrService = toastrService;
|
|
997
|
-
this.uploadProviderService = uploadProviderService;
|
|
998
|
-
this.downloadService = downloadService;
|
|
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
|
-
}));
|
|
1014
|
-
this.fields = [
|
|
1015
|
-
{ key: 'fileName', label: 'File name' },
|
|
1016
|
-
{ key: 'sizeInBytes', label: 'Size in bytes' },
|
|
1017
|
-
{ key: 'createdOn', label: 'Created on', viewType: 'date' },
|
|
1018
|
-
{ key: 'createdBy', label: 'Created by' },
|
|
1019
|
-
];
|
|
1020
|
-
this.actions = [
|
|
1021
|
-
{
|
|
1022
|
-
columnName: '',
|
|
1023
|
-
iconClass: 'mdi mdi-open-in-new',
|
|
1024
|
-
callback: this.downloadDocument.bind(this),
|
|
1025
|
-
},
|
|
1026
|
-
{
|
|
1027
|
-
columnName: '',
|
|
1028
|
-
iconClass: 'mdi mdi-delete',
|
|
1029
|
-
callback: this.removeRelatedFile.bind(this),
|
|
1030
|
-
},
|
|
1031
|
-
];
|
|
1032
|
-
this.uploading$ = new rxjs.BehaviorSubject(false);
|
|
1033
|
-
var snapshot = this.route.snapshot.paramMap;
|
|
1034
|
-
this.documentId = snapshot.get('documentId') || '';
|
|
1035
|
-
this.documentDefinitionName = snapshot.get('documentDefinitionName') || '';
|
|
1036
|
-
}
|
|
1037
|
-
DossierDetailTabDocumentsComponent.prototype.ngOnInit = function () {
|
|
1038
|
-
this.refetchDocuments();
|
|
1039
|
-
};
|
|
1040
|
-
DossierDetailTabDocumentsComponent.prototype.fileSelected = function (file) {
|
|
1041
|
-
var _this = this;
|
|
1042
|
-
this.uploading$.next(true);
|
|
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 () {
|
|
1047
|
-
_this.toastrService.success('Successfully uploaded document to dossier');
|
|
1048
|
-
_this.refetchDocuments();
|
|
1049
|
-
_this.uploading$.next(false);
|
|
1050
|
-
}, function () {
|
|
1051
|
-
_this.toastrService.error('Failed to upload document to dossier');
|
|
1052
|
-
_this.uploading$.next(false);
|
|
1053
|
-
});
|
|
1054
|
-
};
|
|
1055
|
-
DossierDetailTabDocumentsComponent.prototype.downloadDocument = function (relatedFile) {
|
|
1056
|
-
var _this = this;
|
|
1057
|
-
this.uploadProviderService
|
|
1058
|
-
.getResource(relatedFile.fileId)
|
|
1059
|
-
.subscribe(function (resource) {
|
|
1060
|
-
_this.downloadService.downloadFile(resource.url, resource.resource.name);
|
|
1061
|
-
});
|
|
1062
|
-
};
|
|
1063
|
-
DossierDetailTabDocumentsComponent.prototype.removeRelatedFile = function (relatedFile) {
|
|
1064
|
-
var _this = this;
|
|
1065
|
-
this.documentService.removeResource(this.documentId, relatedFile.fileId).subscribe(function () {
|
|
1066
|
-
_this.toastrService.success('Successfully removed document from dossier');
|
|
1067
|
-
_this.refetchDocuments();
|
|
1068
|
-
}, function () {
|
|
1069
|
-
_this.toastrService.error('Failed to remove document from dossier');
|
|
1070
|
-
});
|
|
1071
|
-
};
|
|
1072
|
-
DossierDetailTabDocumentsComponent.prototype.refetchDocuments = function () {
|
|
1073
|
-
this.refetch$.next(null);
|
|
1074
|
-
};
|
|
1075
|
-
return DossierDetailTabDocumentsComponent;
|
|
1076
|
-
}());
|
|
1077
|
-
DossierDetailTabDocumentsComponent.decorators = [
|
|
1078
|
-
{ type: i0.Component, args: [{
|
|
1079
|
-
selector: 'valtimo-dossier-detail-tab-documents',
|
|
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",
|
|
1081
|
-
styles: [""]
|
|
1082
|
-
},] }
|
|
1083
|
-
];
|
|
1084
|
-
DossierDetailTabDocumentsComponent.ctorParameters = function () { return [
|
|
1085
|
-
{ type: router.ActivatedRoute },
|
|
1086
|
-
{ type: document.DocumentService },
|
|
1087
|
-
{ type: ngxToastr.ToastrService },
|
|
1088
|
-
{ type: resource.UploadProviderService },
|
|
1089
|
-
{ type: resource.DownloadService },
|
|
1090
|
-
{ type: core.TranslateService },
|
|
1091
|
-
{ type: i1.ConfigService }
|
|
1092
|
-
]; };
|
|
1093
|
-
|
|
1094
|
-
/*
|
|
1095
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
1096
|
-
*
|
|
1097
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1098
|
-
* you may not use this file except in compliance with the License.
|
|
1099
|
-
* You may obtain a copy of the License at
|
|
1100
|
-
*
|
|
1101
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1102
|
-
*
|
|
1103
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1104
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
1105
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1106
|
-
* See the License for the specific language governing permissions and
|
|
1107
|
-
* limitations under the License.
|
|
1108
|
-
*/
|
|
1109
|
-
var TAB_MAP = new i0.InjectionToken('TabMap');
|
|
1110
|
-
var DEFAULT_TABS = new Map([
|
|
1111
|
-
[exports.DefaultTabs.summary, DossierDetailTabSummaryComponent],
|
|
1112
|
-
[exports.DefaultTabs.progress, DossierDetailTabProgressComponent],
|
|
1113
|
-
[exports.DefaultTabs.audit, DossierDetailTabAuditComponent],
|
|
1114
|
-
[exports.DefaultTabs.documents, DossierDetailTabDocumentsComponent],
|
|
1115
|
-
]);
|
|
1116
|
-
|
|
1117
|
-
/*
|
|
1118
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
1119
|
-
*
|
|
1120
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1121
|
-
* you may not use this file except in compliance with the License.
|
|
1122
|
-
* You may obtain a copy of the License at
|
|
1123
|
-
*
|
|
1124
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1125
|
-
*
|
|
1126
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1127
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
1128
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1129
|
-
* See the License for the specific language governing permissions and
|
|
1130
|
-
* limitations under the License.
|
|
1131
|
-
*/
|
|
1132
|
-
var TabService = /** @class */ (function () {
|
|
1133
|
-
function TabService(tabMap) {
|
|
1134
|
-
var _this = this;
|
|
1135
|
-
if (tabMap === void 0) { tabMap = DEFAULT_TABS; }
|
|
1136
|
-
this.tabs = [];
|
|
1137
|
-
this.tabMap = tabMap;
|
|
1138
|
-
var i = 0;
|
|
1139
|
-
this.tabMap.forEach(function (component, name, map) {
|
|
1140
|
-
_this.tabs.push(new TabImpl(name, i, component));
|
|
1141
|
-
i++;
|
|
1142
|
-
});
|
|
1143
|
-
}
|
|
1144
|
-
TabService.prototype.getTabs = function () {
|
|
1145
|
-
return this.tabs;
|
|
1146
|
-
};
|
|
1147
|
-
return TabService;
|
|
1148
|
-
}());
|
|
1149
|
-
TabService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TabService_Factory() { return new TabService(i0.ɵɵinject(TAB_MAP)); }, token: TabService, providedIn: "root" });
|
|
1150
|
-
TabService.decorators = [
|
|
1151
|
-
{ type: i0.Injectable, args: [{
|
|
1152
|
-
providedIn: 'root',
|
|
1153
|
-
},] }
|
|
1154
|
-
];
|
|
1155
|
-
TabService.ctorParameters = function () { return [
|
|
1156
|
-
{ type: Map, decorators: [{ type: i0.Inject, args: [TAB_MAP,] }] }
|
|
1157
|
-
]; };
|
|
1158
|
-
|
|
1159
|
-
/*
|
|
1160
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
1161
|
-
*
|
|
1162
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1163
|
-
* you may not use this file except in compliance with the License.
|
|
1164
|
-
* You may obtain a copy of the License at
|
|
1165
|
-
*
|
|
1166
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1167
|
-
*
|
|
1168
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1169
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
1170
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1171
|
-
* See the License for the specific language governing permissions and
|
|
1172
|
-
* limitations under the License.
|
|
1173
|
-
*/
|
|
1174
|
-
var DossierDetailComponent = /** @class */ (function () {
|
|
1175
|
-
function DossierDetailComponent(componentFactoryResolver, translateService, documentService, processService, route, router, location, tabService, configService) {
|
|
1176
|
-
this.componentFactoryResolver = componentFactoryResolver;
|
|
1177
|
-
this.translateService = translateService;
|
|
1178
|
-
this.documentService = documentService;
|
|
1179
|
-
this.processService = processService;
|
|
1180
|
-
this.route = route;
|
|
1181
|
-
this.router = router;
|
|
1182
|
-
this.location = location;
|
|
1183
|
-
this.tabService = tabService;
|
|
1184
|
-
this.configService = configService;
|
|
1185
|
-
this.document = null;
|
|
1186
|
-
this.tabLoader = null;
|
|
1187
|
-
this.processDefinitionListFields = [];
|
|
1188
|
-
this.processDocumentDefinitions = [];
|
|
1189
|
-
this.customDossierHeaderItems = [];
|
|
1190
|
-
this.snapshot = this.route.snapshot.paramMap;
|
|
1191
|
-
this.documentDefinitionName = this.snapshot.get('documentDefinitionName') || '';
|
|
1192
|
-
this.documentId = this.snapshot.get('documentId') || '';
|
|
1193
|
-
}
|
|
1194
|
-
DossierDetailComponent.prototype.ngOnInit = function () {
|
|
1195
|
-
var _this = this;
|
|
1196
|
-
this.tabLoader = new TabLoaderImpl(this.tabService.getTabs(), this.componentFactoryResolver, this.viewContainerRef, this.translateService, this.router, this.location);
|
|
1197
|
-
this.documentService
|
|
1198
|
-
.getDocumentDefinition(this.documentDefinitionName)
|
|
1199
|
-
.subscribe(function (definition) {
|
|
1200
|
-
_this.documentDefinitionNameTitle = definition.schema.title;
|
|
1201
|
-
});
|
|
1202
|
-
this.getCustomDossierHeader();
|
|
1203
|
-
this.initialTabName = this.snapshot.get('tab');
|
|
1204
|
-
this.tabLoader.initial(this.initialTabName);
|
|
1205
|
-
this.getAllAssociatedProcessDefinitions();
|
|
1206
|
-
};
|
|
1207
|
-
DossierDetailComponent.prototype.getAllAssociatedProcessDefinitions = function () {
|
|
1208
|
-
var _this = this;
|
|
1209
|
-
this.documentService
|
|
1210
|
-
.findProcessDocumentDefinitions(this.documentDefinitionName)
|
|
1211
|
-
.subscribe(function (processDocumentDefinitions) {
|
|
1212
|
-
_this.processDocumentDefinitions = processDocumentDefinitions.filter(function (processDocumentDefinition) { return processDocumentDefinition.startableByUser; });
|
|
1213
|
-
_this.processDefinitionListFields = [
|
|
1214
|
-
{
|
|
1215
|
-
key: 'processName',
|
|
1216
|
-
label: 'Proces',
|
|
1217
|
-
},
|
|
1218
|
-
];
|
|
1219
|
-
});
|
|
1220
|
-
};
|
|
1221
|
-
DossierDetailComponent.prototype.startProcess = function (processDocumentDefinition) {
|
|
1222
|
-
this.supportingProcessStart.openModal(processDocumentDefinition, this.documentId);
|
|
1223
|
-
};
|
|
1224
|
-
DossierDetailComponent.prototype.getCustomDossierHeader = function () {
|
|
1225
|
-
var _this = this;
|
|
1226
|
-
var _a;
|
|
1227
|
-
if ((_a = this.configService.config.customDossierHeader) === null || _a === void 0 ? void 0 : _a.hasOwnProperty(this.documentDefinitionName.toLowerCase())) {
|
|
1228
|
-
this.documentService.getDocument(this.documentId).subscribe(function (document) {
|
|
1229
|
-
var _a;
|
|
1230
|
-
_this.document = document;
|
|
1231
|
-
(_a = _this.configService.config.customDossierHeader[_this.documentDefinitionName.toLowerCase()]) === null || _a === void 0 ? void 0 : _a.forEach(function (item) { return _this.getCustomDossierHeaderItem(item); });
|
|
1232
|
-
});
|
|
1233
|
-
}
|
|
1234
|
-
};
|
|
1235
|
-
DossierDetailComponent.prototype.getCustomDossierHeaderItem = function (item) {
|
|
1236
|
-
var _this = this;
|
|
1237
|
-
var _a;
|
|
1238
|
-
this.customDossierHeaderItems.push({
|
|
1239
|
-
label: item['labelTranslationKey'] || '',
|
|
1240
|
-
columnSize: item['columnSize'] || 3,
|
|
1241
|
-
textSize: item['textSize'] || 'md',
|
|
1242
|
-
customClass: item['customClass'] || '',
|
|
1243
|
-
value: (_a = item['propertyPaths']) === null || _a === void 0 ? void 0 : _a.reduce(function (prev, curr) { return prev + _this.getStringFromDocumentPath(item, curr); }, ''),
|
|
1244
|
-
});
|
|
1245
|
-
};
|
|
1246
|
-
DossierDetailComponent.prototype.getStringFromDocumentPath = function (item, path) {
|
|
1247
|
-
var prefix = item['propertyPaths'].indexOf(path) > 0 ? ' ' : '';
|
|
1248
|
-
var string = path.split('.').reduce(function (o, i) { return o[i]; }, this.document.content) || item['noValueText'] || '';
|
|
1249
|
-
var regex = new RegExp('(T\\d\\d:\\d\\d:\\d\\d[+-])');
|
|
1250
|
-
var formattedString = regex.test(string) ? moment_(string).format('DD-MM-YYYY') : string;
|
|
1251
|
-
return prefix + formattedString;
|
|
1252
|
-
};
|
|
1253
|
-
return DossierDetailComponent;
|
|
1254
|
-
}());
|
|
1255
|
-
DossierDetailComponent.decorators = [
|
|
1256
|
-
{ type: i0.Component, args: [{
|
|
1257
|
-
selector: 'valtimo-dossier-detail',
|
|
1258
|
-
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"main-content\">\n <div class=\"container-fluid\">\n <div class=\"col-12 px-0 mb-5\">\n <valtimo-widget>\n <div class=\"card-header bg-light card-header-divider pb-2\">\n <div class=\"row\">\n <div class=\"col\">\n <div class=\"row\" *ngIf=\"customDossierHeaderItems.length > 0; else defaultTitle\">\n <span\n class=\"mb-0 mt-0 pb-2 align-self-end col-xl-{{ item.columnSize }} col-lg-{{\n item.columnSize * 2\n }} {{ item.customClass }}\"\n [ngClass]=\"{\n h1: item.textSize === 'xl',\n h2: item.textSize === 'lg',\n h3: item.textSize === 'md',\n h4: item.textSize === 'sm',\n h5: item.textSize === 'xs'\n }\"\n *ngFor=\"let item of customDossierHeaderItems\"\n >\n <span *ngIf=\"item.label != ''\">{{ item.label | translate }}</span>\n <span *ngIf=\"item.label != '' && item.value != '' && item.value != null\">: </span>\n <strong>{{ item.value }}</strong>\n </span>\n </div>\n <ng-template #defaultTitle>\n {{ documentDefinitionNameTitle }}\n </ng-template>\n </div>\n <div class=\"btn-group mt-m3px mb-3 col-auto\">\n <valtimo-extension\n module=\"dossier\"\n page=\"dossier-detail\"\n section=\"card-header\"\n ></valtimo-extension>\n <div class=\"dropdown\">\n <button\n class=\"btn btn-primary dropdown-toggle\"\n type=\"button\"\n id=\"startProcessDropdown\"\n placement=\"bottom\"\n [ngbTooltip]=\"processDocumentDefinitions.length === 0 ? 'No action' : null\"\n [disabled]=\"processDocumentDefinitions.length === 0\"\n data-toggle=\"dropdown\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n >\n <span>Start</span>\n <i class=\"ml-1 mdi mdi-chevron-down\"></i>\n </button>\n <div\n class=\"dropdown-menu dropdown-menu-right\"\n aria-labelledby=\"startProcessDropdown\"\n >\n <button\n *ngFor=\"let processDocumentDefinition of processDocumentDefinitions\"\n class=\"dropdown-item p\"\n href=\"#\"\n (click)=\"startProcess(processDocumentDefinition)\"\n >\n {{ processDocumentDefinition.processName }}\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n <ul class=\"nav nav-tabs\">\n <li class=\"nav-item\" *ngFor=\"let tab of tabLoader.tabs\">\n <a\n id=\"{{ tab.name }}-tab\"\n class=\"nav-link clickable\"\n [ngClass]=\"{active: tab.isActive()}\"\n data-toggle=\"tab\"\n (click)=\"tabLoader.load(tab)\"\n >\n {{ tabLoader.translateTabName(tab) }}\n </a>\n </li>\n </ul>\n <div class=\"card-body bg-white p-5 position-relative tab-container\">\n <ng-template #tabContainer>Loading...</ng-template>\n <div class=\"clearfix\"></div>\n </div>\n </valtimo-widget>\n </div>\n <valtimo-dossier-supporting-process-start-modal\n (formSubmit)=\"tabLoader.refreshView()\"\n #supportingProcessStartModal\n ></valtimo-dossier-supporting-process-start-modal>\n </div>\n</div>\n",
|
|
1259
|
-
styles: [".tab-container{min-height:300px}"]
|
|
1260
|
-
},] }
|
|
1261
|
-
];
|
|
1262
|
-
DossierDetailComponent.ctorParameters = function () { return [
|
|
1263
|
-
{ type: i0.ComponentFactoryResolver },
|
|
1264
|
-
{ type: core.TranslateService },
|
|
1265
|
-
{ type: document.DocumentService },
|
|
1266
|
-
{ type: process.ProcessService },
|
|
1267
|
-
{ type: router.ActivatedRoute },
|
|
1268
|
-
{ type: router.Router },
|
|
1269
|
-
{ type: common.Location },
|
|
1270
|
-
{ type: TabService },
|
|
1271
|
-
{ type: i1.ConfigService }
|
|
1272
|
-
]; };
|
|
1273
|
-
DossierDetailComponent.propDecorators = {
|
|
1274
|
-
viewContainerRef: [{ type: i0.ViewChild, args: ['tabContainer', { read: i0.ViewContainerRef, static: true },] }],
|
|
1275
|
-
supportingProcessStart: [{ type: i0.ViewChild, args: ['supportingProcessStartModal',] }]
|
|
1276
|
-
};
|
|
1277
|
-
|
|
1278
|
-
var moment$3 = moment_;
|
|
1279
|
-
moment$3.locale(localStorage.getItem('langKey') || '');
|
|
1280
|
-
var DossierDetailTabContactMomentsComponent = /** @class */ (function () {
|
|
1281
|
-
function DossierDetailTabContactMomentsComponent(contactMomentService, alertService, translateService) {
|
|
1282
|
-
var _this = this;
|
|
1283
|
-
this.contactMomentService = contactMomentService;
|
|
1284
|
-
this.alertService = alertService;
|
|
1285
|
-
this.translateService = translateService;
|
|
1286
|
-
this.refetchContactMoments$ = new rxjs.BehaviorSubject('');
|
|
1287
|
-
this.contactMoments$ = this.refetchContactMoments$.pipe(operators.switchMap(function () { return _this.contactMomentService.getContactMoments(); }), operators.map(function (contactMoments) { return contactMoments.map(function (contactMoment) {
|
|
1288
|
-
var registratieDatum = moment$3(contactMoment.registratiedatum);
|
|
1289
|
-
return new components.TimelineItemImpl(registratieDatum.format('DD MMM YYYY'), registratieDatum.format('HH:mm'), contactMoment.medewerkerIdentificatie.achternaam, contactMoment.kanaal, contactMoment.tekst, null);
|
|
1290
|
-
}); }));
|
|
1291
|
-
this.text$ = new rxjs.BehaviorSubject('');
|
|
1292
|
-
this.channel$ = new rxjs.BehaviorSubject('MAIL');
|
|
1293
|
-
this.requestData$ = rxjs.combineLatest([this.text$, this.channel$]);
|
|
1294
|
-
this.valid$ = this.requestData$.pipe(operators.map(function (_a) {
|
|
1295
|
-
var _b = __read(_a, 2), text = _b[0], channel = _b[1];
|
|
1296
|
-
return !!(text && channel);
|
|
1297
|
-
}));
|
|
1298
|
-
this.disabled$ = new rxjs.BehaviorSubject(false);
|
|
1299
|
-
}
|
|
1300
|
-
DossierDetailTabContactMomentsComponent.prototype.textChange = function (text) {
|
|
1301
|
-
this.text$.next(text);
|
|
1302
|
-
};
|
|
1303
|
-
DossierDetailTabContactMomentsComponent.prototype.buttonClick = function () {
|
|
1304
|
-
this.modal.show();
|
|
1305
|
-
};
|
|
1306
|
-
DossierDetailTabContactMomentsComponent.prototype.saveNote = function () {
|
|
1307
|
-
var _this = this;
|
|
1308
|
-
this.disable();
|
|
1309
|
-
this.requestData$.pipe(operators.take(1)).subscribe(function (_a) {
|
|
1310
|
-
var _b = __read(_a, 2), text = _b[0], channel = _b[1];
|
|
1311
|
-
_this.contactMomentService.saveContactMoment({ kanaal: channel, tekst: text }).subscribe(function () {
|
|
1312
|
-
_this.alertService.success(_this.translateService.instant('dossier.contactMoments.saveSuccess'));
|
|
1313
|
-
_this.enable();
|
|
1314
|
-
_this.clear();
|
|
1315
|
-
_this.modal.hide();
|
|
1316
|
-
_this.refetchContactMoments();
|
|
1317
|
-
}, function () {
|
|
1318
|
-
_this.enable();
|
|
1319
|
-
});
|
|
1320
|
-
});
|
|
1321
|
-
};
|
|
1322
|
-
DossierDetailTabContactMomentsComponent.prototype.disable = function () {
|
|
1323
|
-
this.disabled$.next(true);
|
|
1324
|
-
};
|
|
1325
|
-
DossierDetailTabContactMomentsComponent.prototype.enable = function () {
|
|
1326
|
-
this.disabled$.next(false);
|
|
1327
|
-
};
|
|
1328
|
-
DossierDetailTabContactMomentsComponent.prototype.clear = function () {
|
|
1329
|
-
this.text$.next('');
|
|
1330
|
-
};
|
|
1331
|
-
DossierDetailTabContactMomentsComponent.prototype.refetchContactMoments = function () {
|
|
1332
|
-
this.refetchContactMoments$.next('');
|
|
1333
|
-
};
|
|
1334
|
-
return DossierDetailTabContactMomentsComponent;
|
|
1335
|
-
}());
|
|
1336
|
-
DossierDetailTabContactMomentsComponent.decorators = [
|
|
1337
|
-
{ type: i0.Component, args: [{
|
|
1338
|
-
selector: 'valtimo-dossier-detail-tab-contact-moments',
|
|
1339
|
-
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",
|
|
1340
|
-
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}"]
|
|
1341
|
-
},] }
|
|
1342
|
-
];
|
|
1343
|
-
DossierDetailTabContactMomentsComponent.ctorParameters = function () { return [
|
|
1344
|
-
{ type: contactMoment.ContactMomentService },
|
|
1345
|
-
{ type: components.AlertService },
|
|
1346
|
-
{ type: core.TranslateService }
|
|
1347
|
-
]; };
|
|
1348
|
-
DossierDetailTabContactMomentsComponent.propDecorators = {
|
|
1349
|
-
modal: [{ type: i0.ViewChild, args: ['contactMomentsNoteModal',] }]
|
|
1350
|
-
};
|
|
1351
|
-
|
|
1352
|
-
/*
|
|
1353
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
1354
|
-
*
|
|
1355
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1356
|
-
* you may not use this file except in compliance with the License.
|
|
1357
|
-
* You may obtain a copy of the License at
|
|
1358
|
-
*
|
|
1359
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1360
|
-
*
|
|
1361
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1362
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
1363
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1364
|
-
* See the License for the specific language governing permissions and
|
|
1365
|
-
* limitations under the License.
|
|
1366
|
-
*/
|
|
1367
|
-
var moment$4 = moment_;
|
|
1368
|
-
moment$4.locale(localStorage.getItem('langKey') || '');
|
|
1369
|
-
var DossierUpdateComponent = /** @class */ (function () {
|
|
1370
|
-
function DossierUpdateComponent(taskService, documentService, route, toastr, location, dossierService) {
|
|
1371
|
-
this.taskService = taskService;
|
|
1372
|
-
this.documentService = documentService;
|
|
1373
|
-
this.route = route;
|
|
1374
|
-
this.toastr = toastr;
|
|
1375
|
-
this.location = location;
|
|
1376
|
-
this.customDefinitions = {};
|
|
1377
|
-
var snapshot = this.route.snapshot.paramMap;
|
|
1378
|
-
this.documentDefinitionName = snapshot.get('documentDefinitionName') || '';
|
|
1379
|
-
this.documentId = snapshot.get('documentId') || '';
|
|
1380
|
-
this.taskId = snapshot.get('taskId') || '';
|
|
1381
|
-
this.implementationDefinitions = dossierService.getImplementationEnvironmentDefinitions(this.documentDefinitionName);
|
|
1382
|
-
this.loadDocumentDefinition(this.documentDefinitionName);
|
|
1383
|
-
this.loadDocument(this.documentId);
|
|
1384
|
-
}
|
|
1385
|
-
DossierUpdateComponent.prototype.ngOnInit = function () {
|
|
1386
|
-
this.getTask(this.taskId);
|
|
1387
|
-
if (this.implementationDefinitions.definitions.detail.summary) {
|
|
1388
|
-
this.customDefinitions = this.implementationDefinitions.definitions.detail.summary;
|
|
1389
|
-
}
|
|
1390
|
-
};
|
|
1391
|
-
DossierUpdateComponent.prototype.loadDocumentDefinition = function (name) {
|
|
1392
|
-
var _this = this;
|
|
1393
|
-
this.documentService.getDocumentDefinition(name).subscribe(function (definition) {
|
|
1394
|
-
_this.schema = definition.schema;
|
|
1395
|
-
});
|
|
1396
|
-
};
|
|
1397
|
-
DossierUpdateComponent.prototype.loadDocument = function (id) {
|
|
1398
|
-
var _this = this;
|
|
1399
|
-
this.documentService.getDocument(id).subscribe(function (document) {
|
|
1400
|
-
_this.document = document;
|
|
1401
|
-
});
|
|
1402
|
-
};
|
|
1403
|
-
DossierUpdateComponent.prototype.getTask = function (id) {
|
|
1404
|
-
var _this = this;
|
|
1405
|
-
this.taskService.getTask(id).subscribe(function (task) {
|
|
1406
|
-
_this.task = task;
|
|
1407
|
-
_this.task.task.created = moment$4(_this.task.task.created).format('DD MMM YYYY HH:mm');
|
|
1408
|
-
_this.page = {
|
|
1409
|
-
title: _this.task.task.name,
|
|
1410
|
-
subtitle: "Created " + moment$4(_this.task.task.created).fromNow(),
|
|
1411
|
-
};
|
|
1412
|
-
});
|
|
1413
|
-
};
|
|
1414
|
-
DossierUpdateComponent.prototype.reset = function () {
|
|
1415
|
-
this.loadDocument(this.documentId);
|
|
1416
|
-
};
|
|
1417
|
-
DossierUpdateComponent.prototype.back = function () {
|
|
1418
|
-
this.location.back();
|
|
1419
|
-
};
|
|
1420
|
-
DossierUpdateComponent.prototype.save = function () {
|
|
1421
|
-
var _this = this;
|
|
1422
|
-
var document = {
|
|
1423
|
-
documentId: this.document.id,
|
|
1424
|
-
content: this.document.content,
|
|
1425
|
-
versionBasedOn: this.document.version,
|
|
1426
|
-
};
|
|
1427
|
-
this.documentService.modifyDocument(document).subscribe(function (result) {
|
|
1428
|
-
_this.document = result.document;
|
|
1429
|
-
_this.toastr.success('Document aangepast');
|
|
1430
|
-
_this.location.back();
|
|
1431
|
-
});
|
|
1432
|
-
};
|
|
1433
|
-
DossierUpdateComponent.prototype.submit = function (data) {
|
|
1434
|
-
var _this = this;
|
|
1435
|
-
// merge document content with formdata
|
|
1436
|
-
var mergedData = Object.assign({}, this.document.content, data);
|
|
1437
|
-
var documentData = {
|
|
1438
|
-
request: {
|
|
1439
|
-
documentId: this.document.id,
|
|
1440
|
-
content: mergedData,
|
|
1441
|
-
versionBasedOn: this.document.version,
|
|
1442
|
-
},
|
|
1443
|
-
taskId: this.task.task.id,
|
|
1444
|
-
};
|
|
1445
|
-
this.documentService.modifyDocumentAndCompleteTask(documentData).subscribe(function (result) {
|
|
1446
|
-
_this.toastr.success(_this.task.task.name + ' has successfully been completed');
|
|
1447
|
-
_this.location.back();
|
|
1448
|
-
});
|
|
1449
|
-
};
|
|
1450
|
-
DossierUpdateComponent.prototype.returnZero = function () {
|
|
1451
|
-
return 0;
|
|
1452
|
-
};
|
|
1453
|
-
return DossierUpdateComponent;
|
|
1454
|
-
}());
|
|
1455
|
-
DossierUpdateComponent.decorators = [
|
|
1456
|
-
{ type: i0.Component, args: [{
|
|
1457
|
-
selector: 'valtimo-dossier-update',
|
|
1458
|
-
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",
|
|
1459
|
-
styles: [""]
|
|
1460
|
-
},] }
|
|
1461
|
-
];
|
|
1462
|
-
DossierUpdateComponent.ctorParameters = function () { return [
|
|
1463
|
-
{ type: task.TaskService },
|
|
1464
|
-
{ type: document.DocumentService },
|
|
1465
|
-
{ type: router.ActivatedRoute },
|
|
1466
|
-
{ type: ngxToastr.ToastrService },
|
|
1467
|
-
{ type: common.Location },
|
|
1468
|
-
{ type: DossierService }
|
|
1469
|
-
]; };
|
|
1470
|
-
|
|
1471
|
-
/*
|
|
1472
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
1473
|
-
*
|
|
1474
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1475
|
-
* you may not use this file except in compliance with the License.
|
|
1476
|
-
* You may obtain a copy of the License at
|
|
1477
|
-
*
|
|
1478
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1479
|
-
*
|
|
1480
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1481
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
1482
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1483
|
-
* See the License for the specific language governing permissions and
|
|
1484
|
-
* limitations under the License.
|
|
1485
|
-
*/
|
|
1486
|
-
var ɵ0 = { title: 'Dossiers', roles: [i1.ROLE_USER] }, ɵ1 = { title: 'Dossiers', parentPath: 'dossiers/:documentDefinitionName', roles: [i1.ROLE_USER] }, ɵ2 = {
|
|
1487
|
-
title: 'Task details',
|
|
1488
|
-
parentPath: 'dossiers/:documentDefinitionName/document/:documentId/:tab',
|
|
1489
|
-
roles: [i1.ROLE_USER],
|
|
1490
|
-
};
|
|
1491
|
-
var routes = [
|
|
1492
|
-
{
|
|
1493
|
-
path: 'dossiers/:documentDefinitionName',
|
|
1494
|
-
component: DossierListComponent,
|
|
1495
|
-
canActivate: [security.AuthGuardService],
|
|
1496
|
-
data: ɵ0,
|
|
1497
|
-
},
|
|
1498
|
-
{
|
|
1499
|
-
path: 'dossiers/:documentDefinitionName/document/:documentId/:tab',
|
|
1500
|
-
component: DossierDetailComponent,
|
|
1501
|
-
canActivate: [security.AuthGuardService],
|
|
1502
|
-
data: ɵ1,
|
|
1503
|
-
},
|
|
1504
|
-
{
|
|
1505
|
-
path: 'dossiers/:documentDefinitionName/document/:documentId/:tab/tasks/:taskId',
|
|
1506
|
-
component: DossierUpdateComponent,
|
|
1507
|
-
canActivate: [security.AuthGuardService],
|
|
1508
|
-
data: ɵ2,
|
|
1509
|
-
},
|
|
1510
|
-
];
|
|
1511
|
-
var DossierRoutingModule = /** @class */ (function () {
|
|
1512
|
-
function DossierRoutingModule() {
|
|
1513
|
-
}
|
|
1514
|
-
return DossierRoutingModule;
|
|
1515
|
-
}());
|
|
1516
|
-
DossierRoutingModule.decorators = [
|
|
1517
|
-
{ type: i0.NgModule, args: [{
|
|
1518
|
-
imports: [common.CommonModule, router.RouterModule.forChild(routes)],
|
|
1519
|
-
exports: [router.RouterModule],
|
|
1520
|
-
},] }
|
|
1521
|
-
];
|
|
1522
|
-
|
|
1523
|
-
/*
|
|
1524
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
1525
|
-
*
|
|
1526
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1527
|
-
* you may not use this file except in compliance with the License.
|
|
1528
|
-
* You may obtain a copy of the License at
|
|
1529
|
-
*
|
|
1530
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1531
|
-
*
|
|
1532
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1533
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
1534
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1535
|
-
* See the License for the specific language governing permissions and
|
|
1536
|
-
* limitations under the License.
|
|
1537
|
-
*/
|
|
1538
|
-
var DossierProcessStartModalComponent = /** @class */ (function () {
|
|
1539
|
-
function DossierProcessStartModalComponent(route, router, processService, documentService, formLinkService, userProviderService, logger) {
|
|
1540
|
-
this.route = route;
|
|
1541
|
-
this.router = router;
|
|
1542
|
-
this.processService = processService;
|
|
1543
|
-
this.documentService = documentService;
|
|
1544
|
-
this.formLinkService = formLinkService;
|
|
1545
|
-
this.userProviderService = userProviderService;
|
|
1546
|
-
this.logger = logger;
|
|
1547
|
-
}
|
|
1548
|
-
DossierProcessStartModalComponent.prototype.ngOnInit = function () {
|
|
1549
|
-
this.isUserAdmin();
|
|
1550
|
-
};
|
|
1551
|
-
DossierProcessStartModalComponent.prototype.loadFormDefinition = function () {
|
|
1552
|
-
var _this = this;
|
|
1553
|
-
this.formDefinition = null;
|
|
1554
|
-
this.formLinkService
|
|
1555
|
-
.getStartEventFormDefinitionByProcessDefinitionKey(this.processDefinitionKey)
|
|
1556
|
-
.subscribe(function (formDefinition) {
|
|
1557
|
-
_this.formAssociation = formDefinition.formAssociation;
|
|
1558
|
-
var className = _this.formAssociation.formLink.className.split('.');
|
|
1559
|
-
var linkType = className[className.length - 1];
|
|
1560
|
-
switch (linkType) {
|
|
1561
|
-
case 'BpmnElementFormIdLink':
|
|
1562
|
-
_this.formDefinition = formDefinition;
|
|
1563
|
-
_this.modal.show();
|
|
1564
|
-
break;
|
|
1565
|
-
case 'BpmnElementUrlLink':
|
|
1566
|
-
var url = _this.router.serializeUrl(_this.router.createUrlTree([formDefinition.formAssociation.formLink.url]));
|
|
1567
|
-
window.open(url, '_blank');
|
|
1568
|
-
break;
|
|
1569
|
-
case 'BpmnElementAngularStateUrlLink':
|
|
1570
|
-
_this.router.navigate([formDefinition.formAssociation.formLink.url]);
|
|
1571
|
-
break;
|
|
1572
|
-
default:
|
|
1573
|
-
_this.logger.fatal('Unsupported class name');
|
|
1574
|
-
}
|
|
1575
|
-
}, function (errors) {
|
|
1576
|
-
_this.modal.show();
|
|
1577
|
-
});
|
|
1578
|
-
};
|
|
1579
|
-
DossierProcessStartModalComponent.prototype.gotoFormLinkScreen = function () {
|
|
1580
|
-
this.modal.hide();
|
|
1581
|
-
this.router.navigate(['form-links'], { queryParams: { process: this.processDefinitionKey } });
|
|
1582
|
-
};
|
|
1583
|
-
Object.defineProperty(DossierProcessStartModalComponent.prototype, "modalTitle", {
|
|
1584
|
-
get: function () {
|
|
1585
|
-
return "Start - " + this.processName;
|
|
1586
|
-
},
|
|
1587
|
-
enumerable: false,
|
|
1588
|
-
configurable: true
|
|
1589
|
-
});
|
|
1590
|
-
DossierProcessStartModalComponent.prototype.openModal = function (processDocumentDefinition) {
|
|
1591
|
-
this.processDefinitionKey = processDocumentDefinition.id.processDefinitionKey;
|
|
1592
|
-
this.documentDefinitionName = processDocumentDefinition.id.documentDefinitionId.name;
|
|
1593
|
-
this.processName = processDocumentDefinition.processName;
|
|
1594
|
-
this.options = new components.FormioOptionsImpl();
|
|
1595
|
-
this.options.disableAlerts = true;
|
|
1596
|
-
var formioBeforeSubmit = function (submission, callback) {
|
|
1597
|
-
callback(null, submission);
|
|
1598
|
-
};
|
|
1599
|
-
this.options.setHooks(formioBeforeSubmit);
|
|
1600
|
-
this.loadFormDefinition();
|
|
1601
|
-
};
|
|
1602
|
-
DossierProcessStartModalComponent.prototype.onSubmit = function (submission) {
|
|
1603
|
-
var _this = this;
|
|
1604
|
-
this.formioSubmission = submission;
|
|
1605
|
-
this.formLinkService
|
|
1606
|
-
.onSubmit(this.processDefinitionKey, this.formAssociation.formLink.id, submission.data)
|
|
1607
|
-
.subscribe(function (formSubmissionResult) {
|
|
1608
|
-
_this.modal.hide();
|
|
1609
|
-
_this.router.navigate([
|
|
1610
|
-
'dossiers',
|
|
1611
|
-
_this.documentDefinitionName,
|
|
1612
|
-
'document',
|
|
1613
|
-
formSubmissionResult.documentId,
|
|
1614
|
-
'summary',
|
|
1615
|
-
]);
|
|
1616
|
-
}, function (errors) {
|
|
1617
|
-
_this.form.showErrors(errors);
|
|
1618
|
-
});
|
|
1619
|
-
};
|
|
1620
|
-
DossierProcessStartModalComponent.prototype.isUserAdmin = function () {
|
|
1621
|
-
var _this = this;
|
|
1622
|
-
this.userProviderService.getUserSubject().subscribe(function (userIdentity) {
|
|
1623
|
-
_this.isAdmin = userIdentity.roles.includes('ROLE_ADMIN');
|
|
1624
|
-
}, function (error) {
|
|
1625
|
-
_this.logger.error('Failed to retrieve user identity', error);
|
|
1626
|
-
_this.isAdmin = false;
|
|
1627
|
-
});
|
|
1628
|
-
};
|
|
1629
|
-
return DossierProcessStartModalComponent;
|
|
1630
|
-
}());
|
|
1631
|
-
DossierProcessStartModalComponent.decorators = [
|
|
1632
|
-
{ type: i0.Component, args: [{
|
|
1633
|
-
selector: 'valtimo-dossier-process-start-modal',
|
|
1634
|
-
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",
|
|
1635
|
-
encapsulation: i0.ViewEncapsulation.None,
|
|
1636
|
-
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}"]
|
|
1637
|
-
},] }
|
|
1638
|
-
];
|
|
1639
|
-
DossierProcessStartModalComponent.ctorParameters = function () { return [
|
|
1640
|
-
{ type: router.ActivatedRoute },
|
|
1641
|
-
{ type: router.Router },
|
|
1642
|
-
{ type: process.ProcessService },
|
|
1643
|
-
{ type: document.DocumentService },
|
|
1644
|
-
{ type: formLink.FormLinkService },
|
|
1645
|
-
{ type: security.UserProviderService },
|
|
1646
|
-
{ type: ngxLogger.NGXLogger }
|
|
1647
|
-
]; };
|
|
1648
|
-
DossierProcessStartModalComponent.propDecorators = {
|
|
1649
|
-
form: [{ type: i0.ViewChild, args: ['form', { static: false },] }],
|
|
1650
|
-
modal: [{ type: i0.ViewChild, args: ['processStartModal', { static: false },] }]
|
|
1651
|
-
};
|
|
1652
|
-
|
|
1653
|
-
/*
|
|
1654
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
1655
|
-
*
|
|
1656
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1657
|
-
* you may not use this file except in compliance with the License.
|
|
1658
|
-
* You may obtain a copy of the License at
|
|
1659
|
-
*
|
|
1660
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1661
|
-
*
|
|
1662
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1663
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
1664
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1665
|
-
* See the License for the specific language governing permissions and
|
|
1666
|
-
* limitations under the License.
|
|
1667
|
-
*/
|
|
1668
|
-
var DossierSupportingProcessStartModalComponent = /** @class */ (function () {
|
|
1669
|
-
function DossierSupportingProcessStartModalComponent(route, router, processService, documentService, formLinkService, logger) {
|
|
1670
|
-
this.route = route;
|
|
1671
|
-
this.router = router;
|
|
1672
|
-
this.processService = processService;
|
|
1673
|
-
this.documentService = documentService;
|
|
1674
|
-
this.formLinkService = formLinkService;
|
|
1675
|
-
this.logger = logger;
|
|
1676
|
-
this.formSubmit = new i0.EventEmitter();
|
|
1677
|
-
}
|
|
1678
|
-
DossierSupportingProcessStartModalComponent.prototype.loadFormDefinition = function () {
|
|
1679
|
-
var _this = this;
|
|
1680
|
-
this.formDefinition = null;
|
|
1681
|
-
this.formLinkService
|
|
1682
|
-
.getStartEventFormDefinitionByProcessDefinitionKey(this.processDefinitionKey)
|
|
1683
|
-
.subscribe(function (formDefinition) {
|
|
1684
|
-
_this.formAssociation = formDefinition.formAssociation;
|
|
1685
|
-
var className = _this.formAssociation.formLink.className.split('.');
|
|
1686
|
-
var linkType = className[className.length - 1];
|
|
1687
|
-
switch (linkType) {
|
|
1688
|
-
case 'BpmnElementFormIdLink':
|
|
1689
|
-
_this.formDefinition = formDefinition;
|
|
1690
|
-
_this.documentService.getDocument(_this.documentId).subscribe(function (document) {
|
|
1691
|
-
_this.submission = {
|
|
1692
|
-
data: document.content,
|
|
1693
|
-
};
|
|
1694
|
-
}, function () { return rxjs.noop(); });
|
|
1695
|
-
_this.modal.show();
|
|
1696
|
-
break;
|
|
1697
|
-
case 'BpmnElementUrlLink':
|
|
1698
|
-
var url = _this.router.serializeUrl(_this.router.createUrlTree([formDefinition.formAssociation.formLink.url]));
|
|
1699
|
-
window.open(url, '_blank');
|
|
1700
|
-
break;
|
|
1701
|
-
case 'BpmnElementAngularStateUrlLink':
|
|
1702
|
-
_this.route.params.pipe(operators.take(1)).subscribe(function (params) {
|
|
1703
|
-
var documentId = params === null || params === void 0 ? void 0 : params.documentId;
|
|
1704
|
-
_this.router.navigate([formDefinition.formAssociation.formLink.url], {
|
|
1705
|
-
state: Object.assign({}, (documentId && { documentId: documentId })),
|
|
1706
|
-
});
|
|
1707
|
-
});
|
|
1708
|
-
break;
|
|
1709
|
-
default:
|
|
1710
|
-
_this.logger.fatal('Unsupported class name');
|
|
1711
|
-
}
|
|
1712
|
-
}, function (errors) {
|
|
1713
|
-
_this.modal.show();
|
|
1714
|
-
});
|
|
1715
|
-
};
|
|
1716
|
-
Object.defineProperty(DossierSupportingProcessStartModalComponent.prototype, "modalTitle", {
|
|
1717
|
-
get: function () {
|
|
1718
|
-
return "Start - " + this.processName;
|
|
1719
|
-
},
|
|
1720
|
-
enumerable: false,
|
|
1721
|
-
configurable: true
|
|
1722
|
-
});
|
|
1723
|
-
DossierSupportingProcessStartModalComponent.prototype.openModal = function (processDocumentDefinition, documentId) {
|
|
1724
|
-
this.documentId = documentId;
|
|
1725
|
-
this.documentDefinitionName = processDocumentDefinition.id.documentDefinitionId.name;
|
|
1726
|
-
this.processDefinitionKey = processDocumentDefinition.id.processDefinitionKey;
|
|
1727
|
-
this.processName = processDocumentDefinition.processName;
|
|
1728
|
-
this.options = new components.FormioOptionsImpl();
|
|
1729
|
-
this.options.disableAlerts = true;
|
|
1730
|
-
var formioBeforeSubmit = function (submission, callback) {
|
|
1731
|
-
callback(null, submission);
|
|
1732
|
-
};
|
|
1733
|
-
this.options.setHooks(formioBeforeSubmit);
|
|
1734
|
-
this.loadFormDefinition();
|
|
1735
|
-
};
|
|
1736
|
-
DossierSupportingProcessStartModalComponent.prototype.onSubmit = function (submission) {
|
|
1737
|
-
var _this = this;
|
|
1738
|
-
this.formioSubmission = submission;
|
|
1739
|
-
this.formLinkService
|
|
1740
|
-
.onSubmit(this.processDefinitionKey, this.formAssociation.formLink.id, submission.data, this.documentId)
|
|
1741
|
-
.subscribe(function (formSubmissionResult) {
|
|
1742
|
-
_this.modal.hide();
|
|
1743
|
-
_this.formSubmit.emit();
|
|
1744
|
-
}, function (errors) {
|
|
1745
|
-
_this.form.showErrors(errors);
|
|
1746
|
-
});
|
|
1747
|
-
};
|
|
1748
|
-
DossierSupportingProcessStartModalComponent.prototype.gotoFormLinkScreen = function () {
|
|
1749
|
-
this.modal.hide();
|
|
1750
|
-
this.router.navigate(['form-links'], { queryParams: { process: this.processDefinitionKey } });
|
|
1751
|
-
};
|
|
1752
|
-
return DossierSupportingProcessStartModalComponent;
|
|
1753
|
-
}());
|
|
1754
|
-
DossierSupportingProcessStartModalComponent.decorators = [
|
|
1755
|
-
{ type: i0.Component, args: [{
|
|
1756
|
-
selector: 'valtimo-dossier-supporting-process-start-modal',
|
|
1757
|
-
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",
|
|
1758
|
-
encapsulation: i0.ViewEncapsulation.None,
|
|
1759
|
-
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}"]
|
|
1760
|
-
},] }
|
|
1761
|
-
];
|
|
1762
|
-
DossierSupportingProcessStartModalComponent.ctorParameters = function () { return [
|
|
1763
|
-
{ type: router.ActivatedRoute },
|
|
1764
|
-
{ type: router.Router },
|
|
1765
|
-
{ type: process.ProcessService },
|
|
1766
|
-
{ type: document.DocumentService },
|
|
1767
|
-
{ type: formLink.FormLinkService },
|
|
1768
|
-
{ type: ngxLogger.NGXLogger }
|
|
1769
|
-
]; };
|
|
1770
|
-
DossierSupportingProcessStartModalComponent.propDecorators = {
|
|
1771
|
-
form: [{ type: i0.ViewChild, args: ['form', { static: false },] }],
|
|
1772
|
-
modal: [{ type: i0.ViewChild, args: ['supportingProcessStartModal', { static: false },] }],
|
|
1773
|
-
formSubmit: [{ type: i0.Output }]
|
|
1774
|
-
};
|
|
1775
|
-
|
|
1776
|
-
/*
|
|
1777
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
1778
|
-
*
|
|
1779
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1780
|
-
* you may not use this file except in compliance with the License.
|
|
1781
|
-
* You may obtain a copy of the License at
|
|
1782
|
-
*
|
|
1783
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1784
|
-
*
|
|
1785
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1786
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
1787
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1788
|
-
* See the License for the specific language governing permissions and
|
|
1789
|
-
* limitations under the License.
|
|
1790
|
-
*/
|
|
1791
|
-
var ɵ0$1 = i1.HttpLoaderFactory;
|
|
1792
|
-
var DossierModule = /** @class */ (function () {
|
|
1793
|
-
function DossierModule() {
|
|
1794
|
-
}
|
|
1795
|
-
DossierModule.forRoot = function (tabsFactory) {
|
|
1796
|
-
return {
|
|
1797
|
-
ngModule: DossierModule,
|
|
1798
|
-
providers: [
|
|
1799
|
-
DossierService,
|
|
1800
|
-
TabService,
|
|
1801
|
-
{
|
|
1802
|
-
provide: TAB_MAP,
|
|
1803
|
-
useFactory: tabsFactory,
|
|
1804
|
-
},
|
|
1805
|
-
{
|
|
1806
|
-
provide: i0.ANALYZE_FOR_ENTRY_COMPONENTS,
|
|
1807
|
-
useValue: Array.from(tabsFactory().values()),
|
|
1808
|
-
multi: true,
|
|
1809
|
-
},
|
|
1810
|
-
],
|
|
1811
|
-
};
|
|
1812
|
-
};
|
|
1813
|
-
return DossierModule;
|
|
1814
|
-
}());
|
|
1815
|
-
DossierModule.decorators = [
|
|
1816
|
-
{ type: i0.NgModule, args: [{
|
|
1817
|
-
declarations: [
|
|
1818
|
-
DossierListComponent,
|
|
1819
|
-
DossierDetailComponent,
|
|
1820
|
-
DossierDetailTabSummaryComponent,
|
|
1821
|
-
DossierDetailTabProgressComponent,
|
|
1822
|
-
DossierDetailTabAuditComponent,
|
|
1823
|
-
DossierDetailTabDocumentsComponent,
|
|
1824
|
-
DossierDetailTabContactMomentsComponent,
|
|
1825
|
-
DossierUpdateComponent,
|
|
1826
|
-
DossierProcessStartModalComponent,
|
|
1827
|
-
DossierSupportingProcessStartModalComponent,
|
|
1828
|
-
],
|
|
1829
|
-
imports: [
|
|
1830
|
-
common.CommonModule,
|
|
1831
|
-
DossierRoutingModule,
|
|
1832
|
-
components.ListModule,
|
|
1833
|
-
components.WidgetModule,
|
|
1834
|
-
components.BpmnJsDiagramModule,
|
|
1835
|
-
components.TimelineModule,
|
|
1836
|
-
components.CamundaFormModule,
|
|
1837
|
-
process.ProcessModule,
|
|
1838
|
-
components.FilterSidebarModule,
|
|
1839
|
-
ngBootstrap.NgbButtonsModule,
|
|
1840
|
-
components.DataListModule,
|
|
1841
|
-
forms.FormsModule,
|
|
1842
|
-
form.FormModule,
|
|
1843
|
-
components.FormIoModule,
|
|
1844
|
-
components.ModalModule,
|
|
1845
|
-
components.SpinnerModule,
|
|
1846
|
-
core.TranslateModule.forRoot({
|
|
1847
|
-
loader: {
|
|
1848
|
-
provide: core.TranslateLoader,
|
|
1849
|
-
useFactory: ɵ0$1,
|
|
1850
|
-
deps: [http.HttpClient],
|
|
1851
|
-
},
|
|
1852
|
-
}),
|
|
1853
|
-
task.TaskModule,
|
|
1854
|
-
components.ModalModule,
|
|
1855
|
-
ngBootstrap.NgbTooltipModule,
|
|
1856
|
-
components.UploaderModule,
|
|
1857
|
-
components.DropzoneModule,
|
|
1858
|
-
ngBootstrap.NgbPaginationModule,
|
|
1859
|
-
i1.ConfigModule,
|
|
1860
|
-
],
|
|
1861
|
-
exports: [DossierListComponent, DossierDetailComponent],
|
|
1862
|
-
entryComponents: [
|
|
1863
|
-
DossierDetailTabSummaryComponent,
|
|
1864
|
-
DossierDetailTabProgressComponent,
|
|
1865
|
-
DossierDetailTabAuditComponent,
|
|
1866
|
-
DossierDetailTabDocumentsComponent,
|
|
1867
|
-
DossierDetailTabContactMomentsComponent,
|
|
1868
|
-
],
|
|
1869
|
-
},] }
|
|
1870
|
-
];
|
|
1871
|
-
|
|
1872
|
-
/*
|
|
1873
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
1874
|
-
*
|
|
1875
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1876
|
-
* you may not use this file except in compliance with the License.
|
|
1877
|
-
* You may obtain a copy of the License at
|
|
1878
|
-
*
|
|
1879
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1880
|
-
*
|
|
1881
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1882
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
1883
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1884
|
-
* See the License for the specific language governing permissions and
|
|
1885
|
-
* limitations under the License.
|
|
1886
|
-
*/
|
|
1887
|
-
|
|
1888
|
-
/**
|
|
1889
|
-
* Generated bundle index. Do not edit.
|
|
1890
|
-
*/
|
|
1891
|
-
|
|
1892
|
-
exports.DEFAULT_TABS = DEFAULT_TABS;
|
|
1893
|
-
exports.DossierDetailComponent = DossierDetailComponent;
|
|
1894
|
-
exports.DossierDetailTabAuditComponent = DossierDetailTabAuditComponent;
|
|
1895
|
-
exports.DossierDetailTabContactMomentsComponent = DossierDetailTabContactMomentsComponent;
|
|
1896
|
-
exports.DossierDetailTabDocumentsComponent = DossierDetailTabDocumentsComponent;
|
|
1897
|
-
exports.DossierDetailTabProgressComponent = DossierDetailTabProgressComponent;
|
|
1898
|
-
exports.DossierDetailTabSummaryComponent = DossierDetailTabSummaryComponent;
|
|
1899
|
-
exports.DossierListComponent = DossierListComponent;
|
|
1900
|
-
exports.DossierModule = DossierModule;
|
|
1901
|
-
exports.DossierService = DossierService;
|
|
1902
|
-
exports.TAB_MAP = TAB_MAP;
|
|
1903
|
-
exports.TabImpl = TabImpl;
|
|
1904
|
-
exports.TabLoaderImpl = TabLoaderImpl;
|
|
1905
|
-
exports.TabService = TabService;
|
|
1906
|
-
exports.ɵ0 = ɵ0$1;
|
|
1907
|
-
exports.ɵa = DossierUpdateComponent;
|
|
1908
|
-
exports.ɵb = DossierProcessStartModalComponent;
|
|
1909
|
-
exports.ɵc = DossierSupportingProcessStartModalComponent;
|
|
1910
|
-
exports.ɵd = DossierRoutingModule;
|
|
1911
|
-
|
|
1912
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1913
|
-
|
|
1914
|
-
})));
|
|
1915
|
-
//# sourceMappingURL=valtimo-dossier.umd.js.map
|