@valtimo/dossier 4.15.3-next-main.15 → 4.15.3-next-main.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/valtimo-dossier.umd.js +158 -108
- package/bundles/valtimo-dossier.umd.js.map +1 -1
- package/bundles/valtimo-dossier.umd.min.js +1 -1
- package/bundles/valtimo-dossier.umd.min.js.map +1 -1
- package/esm2015/lib/dossier-detail/dossier-detail.component.js +15 -10
- package/esm2015/lib/dossier-detail/tab/audit/audit.component.js +2 -2
- package/esm2015/lib/dossier-detail/tab/contact-moments/contact-moments.component.js +3 -3
- package/esm2015/lib/dossier-detail/tab/documents/documents.component.js +39 -21
- package/esm2015/lib/dossier-detail/tab/progress/progress.component.js +5 -3
- package/esm2015/lib/dossier-detail/tab/summary/summary.component.js +7 -5
- package/esm2015/lib/dossier-detail-tab-enum.js +1 -1
- package/esm2015/lib/dossier-list/dossier-list.component.js +11 -7
- package/esm2015/lib/dossier-process-start-modal/dossier-process-start-modal.component.js +16 -7
- package/esm2015/lib/dossier-routing.module.js +12 -11
- package/esm2015/lib/dossier-supporting-process-start-modal/dossier-supporting-process-start-modal.component.js +16 -7
- package/esm2015/lib/dossier-update/dossier-update.component.js +6 -6
- package/esm2015/lib/dossier.config.js +2 -2
- package/esm2015/lib/dossier.module.js +13 -16
- package/esm2015/lib/dossier.service.js +6 -3
- package/esm2015/lib/tab.service.js +2 -2
- package/esm2015/public_api.js +1 -1
- package/esm2015/valtimo-dossier.js +1 -1
- package/fesm2015/valtimo-dossier.js +129 -82
- package/fesm2015/valtimo-dossier.js.map +1 -1
- package/lib/dossier-detail/tab/documents/documents.component.d.ts +10 -4
- package/package.json +1 -1
- package/valtimo-dossier.metadata.json +1 -1
|
@@ -28,6 +28,8 @@
|
|
|
28
28
|
return extendStatics(d, b);
|
|
29
29
|
};
|
|
30
30
|
function __extends(d, b) {
|
|
31
|
+
if (typeof b !== "function" && b !== null)
|
|
32
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
31
33
|
extendStatics(d, b);
|
|
32
34
|
function __() { this.constructor = d; }
|
|
33
35
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -213,11 +215,13 @@
|
|
|
213
215
|
}
|
|
214
216
|
return ar;
|
|
215
217
|
}
|
|
218
|
+
/** @deprecated */
|
|
216
219
|
function __spread() {
|
|
217
220
|
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
218
221
|
ar = ar.concat(__read(arguments[i]));
|
|
219
222
|
return ar;
|
|
220
223
|
}
|
|
224
|
+
/** @deprecated */
|
|
221
225
|
function __spreadArrays() {
|
|
222
226
|
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
223
227
|
s += arguments[i].length;
|
|
@@ -226,7 +230,17 @@
|
|
|
226
230
|
r[k] = a[j];
|
|
227
231
|
return r;
|
|
228
232
|
}
|
|
229
|
-
|
|
233
|
+
function __spreadArray(to, from, pack) {
|
|
234
|
+
if (pack || arguments.length === 2)
|
|
235
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
236
|
+
if (ar || !(i in from)) {
|
|
237
|
+
if (!ar)
|
|
238
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
239
|
+
ar[i] = from[i];
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
243
|
+
}
|
|
230
244
|
function __await(v) {
|
|
231
245
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
232
246
|
}
|
|
@@ -291,18 +305,21 @@
|
|
|
291
305
|
function __importDefault(mod) {
|
|
292
306
|
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
293
307
|
}
|
|
294
|
-
function __classPrivateFieldGet(receiver,
|
|
295
|
-
if (!
|
|
296
|
-
throw new TypeError("
|
|
297
|
-
|
|
298
|
-
|
|
308
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
309
|
+
if (kind === "a" && !f)
|
|
310
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
311
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
312
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
313
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
299
314
|
}
|
|
300
|
-
function __classPrivateFieldSet(receiver,
|
|
301
|
-
if (
|
|
302
|
-
throw new TypeError("
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
315
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
316
|
+
if (kind === "m")
|
|
317
|
+
throw new TypeError("Private method is not writable");
|
|
318
|
+
if (kind === "a" && !f)
|
|
319
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
320
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
321
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
322
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
306
323
|
}
|
|
307
324
|
|
|
308
325
|
/*
|
|
@@ -360,7 +377,10 @@
|
|
|
360
377
|
var defaultColumn = columns.find(function (column) { return column.default; });
|
|
361
378
|
return {
|
|
362
379
|
isSorting: false,
|
|
363
|
-
state: {
|
|
380
|
+
state: {
|
|
381
|
+
name: defaultColumn ? defaultColumn.propertyName : columns[0].propertyName,
|
|
382
|
+
direction: 'DESC',
|
|
383
|
+
},
|
|
364
384
|
};
|
|
365
385
|
};
|
|
366
386
|
return DossierService;
|
|
@@ -368,7 +388,7 @@
|
|
|
368
388
|
DossierService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DossierService_Factory() { return new DossierService(i0.ɵɵinject(i1.ConfigService)); }, token: DossierService, providedIn: "root" });
|
|
369
389
|
DossierService.decorators = [
|
|
370
390
|
{ type: i0.Injectable, args: [{
|
|
371
|
-
providedIn: 'root'
|
|
391
|
+
providedIn: 'root',
|
|
372
392
|
},] }
|
|
373
393
|
];
|
|
374
394
|
DossierService.ctorParameters = function () { return [
|
|
@@ -410,7 +430,7 @@
|
|
|
410
430
|
page: 1,
|
|
411
431
|
size: 10,
|
|
412
432
|
maxPaginationItemSize: 5,
|
|
413
|
-
sort: undefined
|
|
433
|
+
sort: undefined,
|
|
414
434
|
};
|
|
415
435
|
this.selectedProcessDocumentDefinition = null;
|
|
416
436
|
this.modalListenerAdded = false;
|
|
@@ -485,8 +505,8 @@
|
|
|
485
505
|
_this.processDefinitionListFields = [
|
|
486
506
|
{
|
|
487
507
|
key: 'processName',
|
|
488
|
-
label: 'Proces'
|
|
489
|
-
}
|
|
508
|
+
label: 'Proces',
|
|
509
|
+
},
|
|
490
510
|
];
|
|
491
511
|
});
|
|
492
512
|
};
|
|
@@ -495,7 +515,9 @@
|
|
|
495
515
|
return new document.DocumentSearchRequestImpl(json.definitionName, this.pagination.page - 1, this.pagination.size, json.sequence, json.createdBy, json.globalSearchFilter, json.sort);
|
|
496
516
|
};
|
|
497
517
|
DossierListComponent.prototype.buildDocumentSearchRequest = function () {
|
|
498
|
-
return new document.DocumentSearchRequestImpl(this.documentDefinitionName, this.pagination.page - 1, this.pagination.size, this.sequence, this.createdBy, this.globalSearchFilter, this.pagination.sort && this.pagination.sort.isSorting
|
|
518
|
+
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
|
|
519
|
+
? this.pagination.sort
|
|
520
|
+
: this.initialSortState);
|
|
499
521
|
};
|
|
500
522
|
DossierListComponent.prototype.storeSearch = function (documentSearchRequest) {
|
|
501
523
|
localStorage.setItem(this.getCachedKey(), JSON.stringify(documentSearchRequest));
|
|
@@ -510,7 +532,9 @@
|
|
|
510
532
|
return 'list-search-' + this.documentDefinitionName;
|
|
511
533
|
};
|
|
512
534
|
DossierListComponent.prototype.rowClick = function (document) {
|
|
513
|
-
this.router.navigate([
|
|
535
|
+
this.router.navigate([
|
|
536
|
+
"/dossiers/" + this.documentDefinitionName + "/document/" + document.id + "/" + exports.DefaultTabs.summary,
|
|
537
|
+
]);
|
|
514
538
|
};
|
|
515
539
|
DossierListComponent.prototype.startDossier = function () {
|
|
516
540
|
if (this.processDocumentDefinitions.length > 1) {
|
|
@@ -568,7 +592,7 @@
|
|
|
568
592
|
DossierListComponent.decorators = [
|
|
569
593
|
{ type: i0.Component, args: [{
|
|
570
594
|
selector: 'valtimo-dossier-list',
|
|
571
|
-
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container *ngTemplateOutlet=\"sidebar\"></ng-container>\n\n<div class=\"main-content pt-0\">\n <div class=\"container-fluid\">\n <div class=\"col-12 px-0 mb-5\">\n <div>\n <div class=\"text-right mt-m3px mb-3\">\n <button\n type=\"button\"\n class=\"btn btn-space btn-primary mr-0\"\n (click)=\"startDossier()\"\n [ngbTooltip]=\"processDocumentDefinitions.length === 0 ? 'No action' : null\"\n placement=\"bottom\"\n [disabled]=\"processDocumentDefinitions.length === 0\"\n >\n {{ 'Start Dossier' | translate }}\n </button>\n </div>\n\n <div\n class=\"modal fade\"\n id=\"startProcess\"\n tabindex=\"-1\"\n role=\"dialog\"\n aria-labelledby=\"startProcessLabel\"\n aria-hidden=\"true\"\n >\n <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h3 class=\"modal-title\" id=\"startProcessLabel\"
|
|
595
|
+
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-container *ngTemplateOutlet=\"sidebar\"></ng-container>\n\n<div class=\"main-content pt-0\">\n <div class=\"container-fluid\">\n <div class=\"col-12 px-0 mb-5\">\n <div>\n <div class=\"text-right mt-m3px mb-3\">\n <button\n type=\"button\"\n class=\"btn btn-space btn-primary mr-0\"\n (click)=\"startDossier()\"\n [ngbTooltip]=\"processDocumentDefinitions.length === 0 ? 'No action' : null\"\n placement=\"bottom\"\n [disabled]=\"processDocumentDefinitions.length === 0\"\n >\n {{ 'Start Dossier' | translate }}\n </button>\n </div>\n\n <div\n class=\"modal fade\"\n id=\"startProcess\"\n tabindex=\"-1\"\n role=\"dialog\"\n aria-labelledby=\"startProcessLabel\"\n aria-hidden=\"true\"\n >\n <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h3 class=\"modal-title\" id=\"startProcessLabel\">\n {{ 'dashboard.startProcess.title' | translate }}\n </h3>\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">×</span>\n </button>\n </div>\n <div class=\"modal-body\">\n <div class=\"table-responsive\">\n <table class=\"table m-0\">\n <tr\n *ngFor=\"let processDocumentDefinition of processDocumentDefinitions\"\n (click)=\"selectProcess(processDocumentDefinition)\"\n style=\"cursor: pointer\"\n >\n <td>{{ processDocumentDefinition.processName }}</td>\n </tr>\n </table>\n </div>\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">\n {{ 'cta.close' | translate }}\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n <valtimo-widget>\n <valtimo-list\n [items]=\"items\"\n [fields]=\"fields\"\n (rowClicked)=\"rowClick($event)\"\n [pagination]=\"pagination\"\n [viewMode]=\"true\"\n [header]=\"true\"\n paginationIdentifier=\"dossierList\"\n (paginationClicked)=\"paginationClicked($event)\"\n (paginationSet)=\"paginationSet()\"\n [initialSortState]=\"getInitialSortState()\"\n (sortChanged)=\"sortChanged($event)\"\n >\n <div header>\n <h3 class=\"list-header-title\">\n {{ schema?.title }}\n <sup class=\"ml-1 badge badge-pill badge-primary\">{{\n documents?.content.length || 0\n }}</sup>\n </h3>\n </div>\n </valtimo-list>\n </valtimo-widget>\n </div>\n </div>\n <valtimo-dossier-process-start-modal #processStartModal></valtimo-dossier-process-start-modal>\n</div>\n\n<ng-template #sidebar>\n <valtimo-filter-sidebar>\n <h4 class=\"title\">Search</h4>\n <div class=\"mb-4\">\n <input\n type=\"text\"\n class=\"form-control\"\n placeholder=\"{{ 'dossier.forms.globalSearchPlaceHolder' | translate }}\"\n [(ngModel)]=\"globalSearchFilter\"\n (blur)=\"doSearch()\"\n (keyup.enter)=\"doSearch()\"\n />\n </div>\n\n <div class=\"mb-4\">\n <input\n type=\"number\"\n class=\"form-control\"\n placeholder=\"{{ 'dossier.forms.referenceNumberPlaceHolder' | translate }}\"\n [(ngModel)]=\"sequence\"\n (blur)=\"doSearch()\"\n (keyup.enter)=\"doSearch()\"\n />\n </div>\n </valtimo-filter-sidebar>\n</ng-template>\n",
|
|
572
596
|
styles: [""]
|
|
573
597
|
},] }
|
|
574
598
|
];
|
|
@@ -629,7 +653,9 @@
|
|
|
629
653
|
};
|
|
630
654
|
DossierDetailTabSummaryComponent.prototype.loadProcessDocumentInstances = function (documentId) {
|
|
631
655
|
var _this = this;
|
|
632
|
-
this.documentService
|
|
656
|
+
this.documentService
|
|
657
|
+
.findProcessDocumentInstances(documentId)
|
|
658
|
+
.subscribe(function (processDocumentInstances) {
|
|
633
659
|
_this.processDocumentInstances = processDocumentInstances;
|
|
634
660
|
_this.processDocumentInstances.forEach(function (instance) {
|
|
635
661
|
_this.loadProcessInstanceTasks(instance.id.processInstanceId);
|
|
@@ -678,7 +704,7 @@
|
|
|
678
704
|
DossierDetailTabSummaryComponent.decorators = [
|
|
679
705
|
{ type: i0.Component, args: [{
|
|
680
706
|
selector: 'valtimo-dossier-detail-tab-summary',
|
|
681
|
-
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"container-fluid\">\n <div class=\"row py-4\">\n <div class=\"col-sm-12 col-md-8 col-xl-9\">\n <div *ngIf=\"document\">\n <div *ngIf=\"formDefinition\" class=\"summaryForm\">\n <div class=\"mb-4\">\n <valtimo-form-io [form]=\"formDefinition\" [options]=\"options\"></valtimo-form-io>\n </div>\n </div>\n </div>\n </div>\n\n <!--Current user tasks right side-->\n <div class=\"col-sm-12 col-md-4 col-xl-3\">\n <h4 class=\"user-tasks-title\">User tasks</h4>\n <ng-container *ngIf=\"!tasks.length\">\n <valtimo-widget>\n <div class=\"p-3\">\n <img class=\"float-left\" src=\"assets/audit-2.png\" height=\"25\" />\n <span class=\"float-right\">{{ 'summary.userTasksDoneState' | translate }}</span>\n <div class=\"clearfix\"></div>\n </div>\n </valtimo-widget>\n </ng-container>\n <ng-container *ngFor=\"let task of tasks\">\n <valtimo-widget>\n <div
|
|
707
|
+
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"container-fluid\">\n <div class=\"row py-4\">\n <div class=\"col-sm-12 col-md-8 col-xl-9\">\n <div *ngIf=\"document\">\n <div *ngIf=\"formDefinition\" class=\"summaryForm\">\n <div class=\"mb-4\">\n <valtimo-form-io [form]=\"formDefinition\" [options]=\"options\"></valtimo-form-io>\n </div>\n </div>\n </div>\n </div>\n\n <!--Current user tasks right side-->\n <div class=\"col-sm-12 col-md-4 col-xl-3\">\n <h4 class=\"user-tasks-title\">User tasks</h4>\n <ng-container *ngIf=\"!tasks.length\">\n <valtimo-widget>\n <div class=\"p-3\">\n <img class=\"float-left\" src=\"assets/audit-2.png\" height=\"25\" />\n <span class=\"float-right\">{{ 'summary.userTasksDoneState' | translate }}</span>\n <div class=\"clearfix\"></div>\n </div>\n </valtimo-widget>\n </ng-container>\n <ng-container *ngFor=\"let task of tasks\">\n <valtimo-widget>\n <div\n class=\"p-3 clickable hoverable\"\n (click)=\"rowTaskClick(task)\"\n *ngIf=\"!task.isLocked()\"\n >\n <span class=\"float-right badge badge-pill badge-primary\">Open</span>\n <strong>{{ task.name }}</strong>\n <div>Created {{ task.created }}</div>\n </div>\n <div class=\"p-3 hoverable\" *ngIf=\"task.isLocked()\">\n <span\n class=\"float-right badge badge-pill badge-secondary bg-grey\"\n ngbTooltip=\"{{ 'summary.taskLocked' | translate }}\"\n >\n <i class=\"icon mdi mdi-lock\"></i>\n </span>\n <strong>{{ task.name }}</strong>\n <div>Created {{ task.created }}</div>\n </div>\n </valtimo-widget>\n </ng-container>\n <valtimo-task-detail-modal\n #taskDetail\n (formSubmit)=\"init()\"\n (assignmentOfTaskChanged)=\"init()\"\n ></valtimo-task-detail-modal>\n </div>\n </div>\n</div>\n",
|
|
682
708
|
encapsulation: i0.ViewEncapsulation.None,
|
|
683
709
|
styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.hoverable:hover{background-color:#eee}.summaryForm .formio-component{margin-bottom:0!important}.summaryForm .formio-component div[ref=element] .form-control{background-color:#fff;border:0;font-size:13px;height:24px!important;margin:0;padding:0!important}.summaryForm .formio-field div[ref=element] .form-control{font-weight:400}.summaryForm .formio-value div[ref=element] .form-control{font-weight:700}.user-tasks-title{color:#000;font-weight:400;height:20px;margin-bottom:12px;margin-top:0}"]
|
|
684
710
|
},] }
|
|
@@ -722,7 +748,9 @@
|
|
|
722
748
|
}
|
|
723
749
|
DossierDetailTabProgressComponent.prototype.ngOnInit = function () {
|
|
724
750
|
var _this = this;
|
|
725
|
-
this.documentService
|
|
751
|
+
this.documentService
|
|
752
|
+
.findProcessDocumentInstances(this.documentId)
|
|
753
|
+
.subscribe(function (processDocumentInstances) {
|
|
726
754
|
_this.processDocumentInstances = processDocumentInstances;
|
|
727
755
|
_this.selectedProcessInstanceId = processDocumentInstances[0].id.processInstanceId;
|
|
728
756
|
});
|
|
@@ -735,7 +763,7 @@
|
|
|
735
763
|
DossierDetailTabProgressComponent.decorators = [
|
|
736
764
|
{ type: i0.Component, args: [{
|
|
737
765
|
selector: 'valtimo-dossier-detail-tab-progress',
|
|
738
|
-
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"full-height-tab-content\" *ngIf=\"processDocumentInstances\">\n <div class=\"col-3\">\n <label><strong>Process</strong></label><br/>\n <select class=\"form-control\" (change)=\"loadProcessInstance($event.target.value)\">\n <option
|
|
766
|
+
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"full-height-tab-content\" *ngIf=\"processDocumentInstances\">\n <div class=\"col-3\">\n <label><strong>Process</strong></label\n ><br />\n <select class=\"form-control\" (change)=\"loadProcessInstance($event.target.value)\">\n <option\n *ngFor=\"let processDocumentInstance of processDocumentInstances\"\n [value]=\"processDocumentInstance.id.processInstanceId\"\n [selected]=\"selectedProcessInstanceId === processDocumentInstance.id.processInstanceId\"\n >\n {{ processDocumentInstance.processName }}\n </option>\n </select>\n </div>\n <valtimo-process-diagram\n [processInstanceId]=\"selectedProcessInstanceId\"\n ></valtimo-process-diagram>\n</div>\n",
|
|
739
767
|
styles: [".full-height-tab-content{height:calc(100vh - 380px);width:100%}"]
|
|
740
768
|
},] }
|
|
741
769
|
];
|
|
@@ -806,7 +834,7 @@
|
|
|
806
834
|
DossierDetailTabAuditComponent.decorators = [
|
|
807
835
|
{ type: i0.Component, args: [{
|
|
808
836
|
selector: 'valtimo-dossier-detail-tab-audit',
|
|
809
|
-
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div *ngIf=\"timelineItems\">\n <valtimo-timeline [items]=\"timelineItems\"></valtimo-timeline>\n</div>\n<valtimo-spinner\n [useBootstrapSpinner]=\"false\"\n name=\"auditSpinner\"\n bdColor=\"rgba(125, 125, 125, 0.35)\"\n color=\"#264251\"\n type=\"square-jelly-box\"\n>\n</valtimo-spinner>\n<div\n
|
|
837
|
+
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div *ngIf=\"timelineItems\">\n <valtimo-timeline [items]=\"timelineItems\"></valtimo-timeline>\n</div>\n<valtimo-spinner\n [useBootstrapSpinner]=\"false\"\n name=\"auditSpinner\"\n bdColor=\"rgba(125, 125, 125, 0.35)\"\n color=\"#264251\"\n type=\"square-jelly-box\"\n>\n</valtimo-spinner>\n<div\n class=\"pagination-holder audit-pagination bg-light px-4 pt-4 pb-2 overflow-auto row mr-0 ml-0\"\n *ngIf=\"pagination && pagination.totalElements > pagination.size\"\n>\n <div class=\"float-left page-count col-4\">\n <strong>{{\n 'list.currentPage' | translate: {current: pagination.number, total: pagination.totalPages}\n }}</strong>\n <br />\n {{\n pagination.totalElements === 1\n ? ('list.showingResult' | translate: {number: pagination.content.length})\n : ('list.showingResults'\n | translate: {number: pagination.content.length, total: pagination.totalElements})\n }}\n </div>\n <div class=\"col-8\">\n <ngb-pagination\n *ngIf=\"pagination.totalElements > pagination.size\"\n class=\"float-right\"\n [collectionSize]=\"pagination.totalElements\"\n [(page)]=\"pagination.number\"\n [pageSize]=\"pagination.size\"\n [maxSize]=\"pagination.size\"\n [rotate]=\"true\"\n (pageChange)=\"onChangePagination(pagination.number)\"\n ></ngb-pagination>\n </div>\n</div>\n",
|
|
810
838
|
styles: [".audit-pagination{border-top:1px solid #dee2e6;margin:0 -1.923rem -1.923rem!important}"]
|
|
811
839
|
},] }
|
|
812
840
|
];
|
|
@@ -819,46 +847,44 @@
|
|
|
819
847
|
paginationClicked: [{ type: i0.Output }]
|
|
820
848
|
};
|
|
821
849
|
|
|
822
|
-
/*
|
|
823
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
824
|
-
*
|
|
825
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
826
|
-
* you may not use this file except in compliance with the License.
|
|
827
|
-
* You may obtain a copy of the License at
|
|
828
|
-
*
|
|
829
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
830
|
-
*
|
|
831
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
832
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
833
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
834
|
-
* See the License for the specific language governing permissions and
|
|
835
|
-
* limitations under the License.
|
|
836
|
-
*/
|
|
837
850
|
var DossierDetailTabDocumentsComponent = /** @class */ (function () {
|
|
838
|
-
function DossierDetailTabDocumentsComponent(route, documentService, toastrService, uploadProviderService, downloadService) {
|
|
851
|
+
function DossierDetailTabDocumentsComponent(route, documentService, toastrService, uploadProviderService, downloadService, translateService, configService) {
|
|
852
|
+
var _this = this;
|
|
853
|
+
var _a, _b;
|
|
839
854
|
this.route = route;
|
|
840
855
|
this.documentService = documentService;
|
|
841
856
|
this.toastrService = toastrService;
|
|
842
857
|
this.uploadProviderService = uploadProviderService;
|
|
843
858
|
this.downloadService = downloadService;
|
|
844
|
-
this.
|
|
859
|
+
this.translateService = translateService;
|
|
860
|
+
this.configService = configService;
|
|
861
|
+
this.maxFileSize = ((_b = (_a = this.configService) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.caseFileSizeUploadLimitMB) || 5;
|
|
862
|
+
this.refetch$ = new rxjs.BehaviorSubject(null);
|
|
863
|
+
this.relatedFiles$ = this.refetch$.pipe(operators.switchMap(function () { return rxjs.combineLatest([_this.documentService.getDocument(_this.documentId), _this.translateService.stream('key')]); }), operators.map(function (_c) {
|
|
864
|
+
var _d = __read(_c, 1), document = _d[0];
|
|
865
|
+
var relatedFiles = (document === null || document === void 0 ? void 0 : document.relatedFiles) || [];
|
|
866
|
+
var translatedFiles = relatedFiles.map(function (file) {
|
|
867
|
+
return Object.assign(Object.assign({}, file), { createdBy: file.createdBy || _this.translateService.instant('list.automaticallyGenerated') });
|
|
868
|
+
});
|
|
869
|
+
return translatedFiles || [];
|
|
870
|
+
}));
|
|
845
871
|
this.fields = [
|
|
846
872
|
{ key: 'fileName', label: 'File name' },
|
|
847
873
|
{ key: 'sizeInBytes', label: 'Size in bytes' },
|
|
848
874
|
{ key: 'createdOn', label: 'Created on', viewType: 'date' },
|
|
849
|
-
{ key: 'createdBy', label: 'Created by' }
|
|
875
|
+
{ key: 'createdBy', label: 'Created by' },
|
|
850
876
|
];
|
|
851
877
|
this.actions = [
|
|
852
878
|
{
|
|
853
879
|
columnName: '',
|
|
854
880
|
iconClass: 'fas fa-external-link-alt',
|
|
855
|
-
callback: this.downloadDocument.bind(this)
|
|
881
|
+
callback: this.downloadDocument.bind(this),
|
|
856
882
|
},
|
|
857
883
|
{
|
|
858
884
|
columnName: '',
|
|
859
885
|
iconClass: 'fas fa-trash-alt',
|
|
860
|
-
callback: this.removeRelatedFile.bind(this)
|
|
861
|
-
}
|
|
886
|
+
callback: this.removeRelatedFile.bind(this),
|
|
887
|
+
},
|
|
862
888
|
];
|
|
863
889
|
this.uploading$ = new rxjs.BehaviorSubject(false);
|
|
864
890
|
var snapshot = this.route.snapshot.paramMap;
|
|
@@ -866,29 +892,28 @@
|
|
|
866
892
|
this.documentDefinitionName = snapshot.get('documentDefinitionName') || '';
|
|
867
893
|
}
|
|
868
894
|
DossierDetailTabDocumentsComponent.prototype.ngOnInit = function () {
|
|
869
|
-
this.
|
|
895
|
+
this.refetchDocuments();
|
|
870
896
|
};
|
|
871
897
|
DossierDetailTabDocumentsComponent.prototype.fileSelected = function (file) {
|
|
872
898
|
var _this = this;
|
|
873
899
|
this.uploading$.next(true);
|
|
874
|
-
this.uploadProviderService
|
|
900
|
+
this.uploadProviderService
|
|
901
|
+
.uploadFile(file, this.documentDefinitionName)
|
|
902
|
+
.pipe(operators.switchMap(function (resourceFile) { return _this.documentService.assignResource(_this.documentId, resourceFile.data.resourceId); }))
|
|
903
|
+
.subscribe(function () {
|
|
875
904
|
_this.toastrService.success('Successfully uploaded document to dossier');
|
|
876
|
-
_this.
|
|
905
|
+
_this.refetchDocuments();
|
|
877
906
|
_this.uploading$.next(false);
|
|
878
907
|
}, function () {
|
|
879
908
|
_this.toastrService.error('Failed to upload document to dossier');
|
|
880
909
|
_this.uploading$.next(false);
|
|
881
910
|
});
|
|
882
911
|
};
|
|
883
|
-
DossierDetailTabDocumentsComponent.prototype.loadDocuments = function () {
|
|
884
|
-
var _this = this;
|
|
885
|
-
this.documentService.getDocument(this.documentId).subscribe(function (document) {
|
|
886
|
-
_this.relatedFiles = document.relatedFiles;
|
|
887
|
-
});
|
|
888
|
-
};
|
|
889
912
|
DossierDetailTabDocumentsComponent.prototype.downloadDocument = function (relatedFile) {
|
|
890
913
|
var _this = this;
|
|
891
|
-
this.uploadProviderService
|
|
914
|
+
this.uploadProviderService
|
|
915
|
+
.getResource(relatedFile.fileId)
|
|
916
|
+
.subscribe(function (resource) {
|
|
892
917
|
_this.downloadService.downloadFile(resource.url, resource.resource.name);
|
|
893
918
|
});
|
|
894
919
|
};
|
|
@@ -896,17 +921,20 @@
|
|
|
896
921
|
var _this = this;
|
|
897
922
|
this.documentService.removeResource(this.documentId, relatedFile.fileId).subscribe(function () {
|
|
898
923
|
_this.toastrService.success('Successfully removed document from dossier');
|
|
899
|
-
_this.
|
|
924
|
+
_this.refetchDocuments();
|
|
900
925
|
}, function () {
|
|
901
926
|
_this.toastrService.error('Failed to remove document from dossier');
|
|
902
927
|
});
|
|
903
928
|
};
|
|
929
|
+
DossierDetailTabDocumentsComponent.prototype.refetchDocuments = function () {
|
|
930
|
+
this.refetch$.next(null);
|
|
931
|
+
};
|
|
904
932
|
return DossierDetailTabDocumentsComponent;
|
|
905
933
|
}());
|
|
906
934
|
DossierDetailTabDocumentsComponent.decorators = [
|
|
907
935
|
{ type: i0.Component, args: [{
|
|
908
936
|
selector: 'valtimo-dossier-detail-tab-documents',
|
|
909
|
-
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-dropzone\n (fileSelected)=\"fileSelected($event)\"\n [acceptedFiles]=\"null\"\n [hideFilePreview]=\"true\"\n [hideTitle]=\"true\"\n [maxFileSize]=\"
|
|
937
|
+
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-dropzone\n (fileSelected)=\"fileSelected($event)\"\n [acceptedFiles]=\"null\"\n [hideFilePreview]=\"true\"\n [hideTitle]=\"true\"\n [maxFileSize]=\"maxFileSize\"\n [showMaxFileSize]=\"true\"\n [camera]=\"false\"\n [uploading]=\"uploading$ | async\"\n></valtimo-dropzone>\n\n<valtimo-widget>\n <valtimo-list\n [fields]=\"fields\"\n [items]=\"relatedFiles$ | async\"\n [header]=\"true\"\n [isSearchable]=\"true\"\n [viewMode]=\"true\"\n [actions]=\"actions\"\n >\n <div header>\n <h3 class=\"list-header-title\">{{ 'Related documents' | translate }}</h3>\n <h5 class=\"list-header-description\">\n {{ 'Overview of all documents in this dossier' | translate }}\n </h5>\n </div>\n </valtimo-list>\n</valtimo-widget>\n",
|
|
910
938
|
styles: [""]
|
|
911
939
|
},] }
|
|
912
940
|
];
|
|
@@ -915,7 +943,9 @@
|
|
|
915
943
|
{ type: document.DocumentService },
|
|
916
944
|
{ type: ngxToastr.ToastrService },
|
|
917
945
|
{ type: resource.UploadProviderService },
|
|
918
|
-
{ type: resource.DownloadService }
|
|
946
|
+
{ type: resource.DownloadService },
|
|
947
|
+
{ type: core.TranslateService },
|
|
948
|
+
{ type: i1.ConfigService }
|
|
919
949
|
]; };
|
|
920
950
|
|
|
921
951
|
/*
|
|
@@ -938,7 +968,7 @@
|
|
|
938
968
|
[exports.DefaultTabs.summary, DossierDetailTabSummaryComponent],
|
|
939
969
|
[exports.DefaultTabs.progress, DossierDetailTabProgressComponent],
|
|
940
970
|
[exports.DefaultTabs.audit, DossierDetailTabAuditComponent],
|
|
941
|
-
[exports.DefaultTabs.documents, DossierDetailTabDocumentsComponent]
|
|
971
|
+
[exports.DefaultTabs.documents, DossierDetailTabDocumentsComponent],
|
|
942
972
|
]);
|
|
943
973
|
|
|
944
974
|
/*
|
|
@@ -976,7 +1006,7 @@
|
|
|
976
1006
|
TabService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TabService_Factory() { return new TabService(i0.ɵɵinject(TAB_MAP)); }, token: TabService, providedIn: "root" });
|
|
977
1007
|
TabService.decorators = [
|
|
978
1008
|
{ type: i0.Injectable, args: [{
|
|
979
|
-
providedIn: 'root'
|
|
1009
|
+
providedIn: 'root',
|
|
980
1010
|
},] }
|
|
981
1011
|
];
|
|
982
1012
|
TabService.ctorParameters = function () { return [
|
|
@@ -1019,7 +1049,9 @@
|
|
|
1019
1049
|
DossierDetailComponent.prototype.ngOnInit = function () {
|
|
1020
1050
|
var _this = this;
|
|
1021
1051
|
this.tabLoader = new contract.TabLoaderImpl(this.tabService.getTabs(), this.componentFactoryResolver, this.viewContainerRef, this.translateService, this.router, this.location);
|
|
1022
|
-
this.documentService
|
|
1052
|
+
this.documentService
|
|
1053
|
+
.getDocumentDefinition(this.documentDefinitionName)
|
|
1054
|
+
.subscribe(function (definition) {
|
|
1023
1055
|
_this.documentDefinitionNameTitle = definition.schema.title;
|
|
1024
1056
|
});
|
|
1025
1057
|
this.initialTabName = this.snapshot.get('tab');
|
|
@@ -1028,13 +1060,16 @@
|
|
|
1028
1060
|
};
|
|
1029
1061
|
DossierDetailComponent.prototype.getAllAssociatedProcessDefinitions = function () {
|
|
1030
1062
|
var _this = this;
|
|
1031
|
-
this.documentService
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
_this.
|
|
1063
|
+
this.documentService
|
|
1064
|
+
.findProcessDocumentDefinitions(this.documentDefinitionName)
|
|
1065
|
+
.subscribe(function (processDocumentDefinitions) {
|
|
1066
|
+
_this.processDocumentDefinitions = processDocumentDefinitions.filter(function (processDocumentDefinition) { return processDocumentDefinition.startableByUser; });
|
|
1067
|
+
_this.processDefinitionListFields = [
|
|
1068
|
+
{
|
|
1035
1069
|
key: 'processName',
|
|
1036
|
-
label: 'Proces'
|
|
1037
|
-
}
|
|
1070
|
+
label: 'Proces',
|
|
1071
|
+
},
|
|
1072
|
+
];
|
|
1038
1073
|
});
|
|
1039
1074
|
};
|
|
1040
1075
|
DossierDetailComponent.prototype.startProcess = function (processDocumentDefinition) {
|
|
@@ -1045,7 +1080,7 @@
|
|
|
1045
1080
|
DossierDetailComponent.decorators = [
|
|
1046
1081
|
{ type: i0.Component, args: [{
|
|
1047
1082
|
selector: 'valtimo-dossier-detail',
|
|
1048
|
-
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"main-content\">\n <div class=\"container-fluid\">\n <div class=\"col-12 px-0 mb-5\">\n <valtimo-widget>\n <div class=\"card-header bg-light card-header-divider pb-5\">\n {{ documentDefinitionNameTitle }}\n <div class=\"btn-group mt-m3px mb-3 float-right\">\n <valtimo-extension\n module=\"dossier\"\n page=\"dossier-detail\"\n section=\"card-header\"\n ></valtimo-extension>\n <div class=\"dropdown\">\n <button
|
|
1083
|
+
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"main-content\">\n <div class=\"container-fluid\">\n <div class=\"col-12 px-0 mb-5\">\n <valtimo-widget>\n <div class=\"card-header bg-light card-header-divider pb-5\">\n {{ documentDefinitionNameTitle }}\n <div class=\"btn-group mt-m3px mb-3 float-right\">\n <valtimo-extension\n module=\"dossier\"\n page=\"dossier-detail\"\n section=\"card-header\"\n ></valtimo-extension>\n <div class=\"dropdown\">\n <button\n class=\"btn btn-primary dropdown-toggle\"\n type=\"button\"\n id=\"startProcessDropdown\"\n placement=\"bottom\"\n [ngbTooltip]=\"processDocumentDefinitions.length === 0 ? 'No action' : null\"\n [disabled]=\"processDocumentDefinitions.length === 0\"\n data-toggle=\"dropdown\"\n aria-haspopup=\"true\"\n aria-expanded=\"false\"\n >\n <span>Start</span>\n <i class=\"pl-2 fas fa-caret-down\"></i>\n </button>\n <div class=\"dropdown-menu dropdown-menu-right\" aria-labelledby=\"startProcessDropdown\">\n <button\n *ngFor=\"let processDocumentDefinition of processDocumentDefinitions\"\n class=\"dropdown-item p\"\n href=\"#\"\n (click)=\"startProcess(processDocumentDefinition)\"\n >\n {{ processDocumentDefinition.processName }}\n </button>\n </div>\n </div>\n </div>\n </div>\n <ul class=\"nav nav-tabs\">\n <li class=\"nav-item\" *ngFor=\"let tab of tabLoader.tabs\">\n <a\n id=\"{{ tab.name }}-tab\"\n class=\"nav-link clickable\"\n [ngClass]=\"{active: tab.isActive()}\"\n data-toggle=\"tab\"\n (click)=\"tabLoader.load(tab)\"\n >\n {{ tabLoader.translateTabName(tab) }}\n </a>\n </li>\n </ul>\n <div class=\"card-body bg-white p-5 position-relative tab-container\">\n <ng-template #tabContainer>Loading...</ng-template>\n <div class=\"clearfix\"></div>\n </div>\n </valtimo-widget>\n </div>\n <valtimo-dossier-supporting-process-start-modal\n (formSubmit)=\"tabLoader.refreshView()\"\n #supportingProcessStartModal\n ></valtimo-dossier-supporting-process-start-modal>\n </div>\n</div>\n",
|
|
1049
1084
|
styles: [".tab-container{min-height:300px}"]
|
|
1050
1085
|
},] }
|
|
1051
1086
|
];
|
|
@@ -1125,7 +1160,7 @@
|
|
|
1125
1160
|
DossierDetailTabContactMomentsComponent.decorators = [
|
|
1126
1161
|
{ type: i0.Component, args: [{
|
|
1127
1162
|
selector: 'valtimo-dossier-detail-tab-contact-moments',
|
|
1128
|
-
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
|
|
1163
|
+
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",
|
|
1129
1164
|
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}"]
|
|
1130
1165
|
},] }
|
|
1131
1166
|
];
|
|
@@ -1196,7 +1231,7 @@
|
|
|
1196
1231
|
_this.task.task.created = moment$4(_this.task.task.created).format('DD MMM YYYY HH:mm');
|
|
1197
1232
|
_this.page = {
|
|
1198
1233
|
title: _this.task.task.name,
|
|
1199
|
-
subtitle: "Created " + moment$4(_this.task.task.created).fromNow()
|
|
1234
|
+
subtitle: "Created " + moment$4(_this.task.task.created).fromNow(),
|
|
1200
1235
|
};
|
|
1201
1236
|
});
|
|
1202
1237
|
};
|
|
@@ -1211,7 +1246,7 @@
|
|
|
1211
1246
|
var document = {
|
|
1212
1247
|
documentId: this.document.id,
|
|
1213
1248
|
content: this.document.content,
|
|
1214
|
-
versionBasedOn: this.document.version
|
|
1249
|
+
versionBasedOn: this.document.version,
|
|
1215
1250
|
};
|
|
1216
1251
|
this.documentService.modifyDocument(document).subscribe(function (result) {
|
|
1217
1252
|
_this.document = result.document;
|
|
@@ -1227,9 +1262,9 @@
|
|
|
1227
1262
|
request: {
|
|
1228
1263
|
documentId: this.document.id,
|
|
1229
1264
|
content: mergedData,
|
|
1230
|
-
versionBasedOn: this.document.version
|
|
1265
|
+
versionBasedOn: this.document.version,
|
|
1231
1266
|
},
|
|
1232
|
-
taskId: this.task.task.id
|
|
1267
|
+
taskId: this.task.task.id,
|
|
1233
1268
|
};
|
|
1234
1269
|
this.documentService.modifyDocumentAndCompleteTask(documentData).subscribe(function (result) {
|
|
1235
1270
|
_this.toastr.success(_this.task.task.name + ' has successfully been completed');
|
|
@@ -1244,7 +1279,7 @@
|
|
|
1244
1279
|
DossierUpdateComponent.decorators = [
|
|
1245
1280
|
{ type: i0.Component, args: [{
|
|
1246
1281
|
selector: 'valtimo-dossier-update',
|
|
1247
|
-
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
|
|
1282
|
+
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",
|
|
1248
1283
|
styles: [""]
|
|
1249
1284
|
},] }
|
|
1250
1285
|
];
|
|
@@ -1272,26 +1307,30 @@
|
|
|
1272
1307
|
* See the License for the specific language governing permissions and
|
|
1273
1308
|
* limitations under the License.
|
|
1274
1309
|
*/
|
|
1275
|
-
var ɵ0 = { title: 'Dossiers', roles: [contract.ROLE_USER] }, ɵ1 = { title: 'Dossiers', parentPath: 'dossiers/:documentDefinitionName', roles: [contract.ROLE_USER] }, ɵ2 = {
|
|
1310
|
+
var ɵ0 = { title: 'Dossiers', roles: [contract.ROLE_USER] }, ɵ1 = { title: 'Dossiers', parentPath: 'dossiers/:documentDefinitionName', roles: [contract.ROLE_USER] }, ɵ2 = {
|
|
1311
|
+
title: 'Task details',
|
|
1312
|
+
parentPath: 'dossiers/:documentDefinitionName/document/:documentId/:tab',
|
|
1313
|
+
roles: [contract.ROLE_USER],
|
|
1314
|
+
};
|
|
1276
1315
|
var routes = [
|
|
1277
1316
|
{
|
|
1278
1317
|
path: 'dossiers/:documentDefinitionName',
|
|
1279
1318
|
component: DossierListComponent,
|
|
1280
1319
|
canActivate: [security.AuthGuardService],
|
|
1281
|
-
data: ɵ0
|
|
1320
|
+
data: ɵ0,
|
|
1282
1321
|
},
|
|
1283
1322
|
{
|
|
1284
1323
|
path: 'dossiers/:documentDefinitionName/document/:documentId/:tab',
|
|
1285
1324
|
component: DossierDetailComponent,
|
|
1286
1325
|
canActivate: [security.AuthGuardService],
|
|
1287
|
-
data: ɵ1
|
|
1326
|
+
data: ɵ1,
|
|
1288
1327
|
},
|
|
1289
1328
|
{
|
|
1290
1329
|
path: 'dossiers/:documentDefinitionName/document/:documentId/:tab/tasks/:taskId',
|
|
1291
1330
|
component: DossierUpdateComponent,
|
|
1292
1331
|
canActivate: [security.AuthGuardService],
|
|
1293
|
-
data: ɵ2
|
|
1294
|
-
}
|
|
1332
|
+
data: ɵ2,
|
|
1333
|
+
},
|
|
1295
1334
|
];
|
|
1296
1335
|
var DossierRoutingModule = /** @class */ (function () {
|
|
1297
1336
|
function DossierRoutingModule() {
|
|
@@ -1300,11 +1339,8 @@
|
|
|
1300
1339
|
}());
|
|
1301
1340
|
DossierRoutingModule.decorators = [
|
|
1302
1341
|
{ type: i0.NgModule, args: [{
|
|
1303
|
-
imports: [
|
|
1304
|
-
|
|
1305
|
-
router.RouterModule.forChild(routes),
|
|
1306
|
-
],
|
|
1307
|
-
exports: [router.RouterModule]
|
|
1342
|
+
imports: [common.CommonModule, router.RouterModule.forChild(routes)],
|
|
1343
|
+
exports: [router.RouterModule],
|
|
1308
1344
|
},] }
|
|
1309
1345
|
];
|
|
1310
1346
|
|
|
@@ -1339,7 +1375,8 @@
|
|
|
1339
1375
|
DossierProcessStartModalComponent.prototype.loadFormDefinition = function () {
|
|
1340
1376
|
var _this = this;
|
|
1341
1377
|
this.formDefinition = null;
|
|
1342
|
-
this.formLinkService
|
|
1378
|
+
this.formLinkService
|
|
1379
|
+
.getStartEventFormDefinitionByProcessDefinitionKey(this.processDefinitionKey)
|
|
1343
1380
|
.subscribe(function (formDefinition) {
|
|
1344
1381
|
_this.formAssociation = formDefinition.formAssociation;
|
|
1345
1382
|
var className = _this.formAssociation.formLink.className.split('.');
|
|
@@ -1389,9 +1426,17 @@
|
|
|
1389
1426
|
DossierProcessStartModalComponent.prototype.onSubmit = function (submission) {
|
|
1390
1427
|
var _this = this;
|
|
1391
1428
|
this.formioSubmission = submission;
|
|
1392
|
-
this.formLinkService
|
|
1429
|
+
this.formLinkService
|
|
1430
|
+
.onSubmit(this.processDefinitionKey, this.formAssociation.formLink.id, submission.data)
|
|
1431
|
+
.subscribe(function (formSubmissionResult) {
|
|
1393
1432
|
_this.modal.hide();
|
|
1394
|
-
_this.router.navigate([
|
|
1433
|
+
_this.router.navigate([
|
|
1434
|
+
'dossiers',
|
|
1435
|
+
_this.documentDefinitionName,
|
|
1436
|
+
'document',
|
|
1437
|
+
formSubmissionResult.documentId,
|
|
1438
|
+
'summary',
|
|
1439
|
+
]);
|
|
1395
1440
|
}, function (errors) {
|
|
1396
1441
|
_this.form.showErrors(errors);
|
|
1397
1442
|
});
|
|
@@ -1410,7 +1455,7 @@
|
|
|
1410
1455
|
DossierProcessStartModalComponent.decorators = [
|
|
1411
1456
|
{ type: i0.Component, args: [{
|
|
1412
1457
|
selector: 'valtimo-dossier-process-start-modal',
|
|
1413
|
-
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\"
|
|
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<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",
|
|
1414
1459
|
encapsulation: i0.ViewEncapsulation.None,
|
|
1415
1460
|
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}"]
|
|
1416
1461
|
},] }
|
|
@@ -1457,7 +1502,8 @@
|
|
|
1457
1502
|
DossierSupportingProcessStartModalComponent.prototype.loadFormDefinition = function () {
|
|
1458
1503
|
var _this = this;
|
|
1459
1504
|
this.formDefinition = null;
|
|
1460
|
-
this.formLinkService
|
|
1505
|
+
this.formLinkService
|
|
1506
|
+
.getStartEventFormDefinitionByProcessDefinitionKey(this.processDefinitionKey)
|
|
1461
1507
|
.subscribe(function (formDefinition) {
|
|
1462
1508
|
_this.formAssociation = formDefinition.formAssociation;
|
|
1463
1509
|
var className = _this.formAssociation.formLink.className.split('.');
|
|
@@ -1467,7 +1513,7 @@
|
|
|
1467
1513
|
_this.formDefinition = formDefinition;
|
|
1468
1514
|
_this.documentService.getDocument(_this.documentId).subscribe(function (document) {
|
|
1469
1515
|
_this.submission = {
|
|
1470
|
-
data: document.content
|
|
1516
|
+
data: document.content,
|
|
1471
1517
|
};
|
|
1472
1518
|
}, function () { return rxjs.noop(); });
|
|
1473
1519
|
_this.modal.show();
|
|
@@ -1477,7 +1523,12 @@
|
|
|
1477
1523
|
window.open(url, '_blank');
|
|
1478
1524
|
break;
|
|
1479
1525
|
case 'BpmnElementAngularStateUrlLink':
|
|
1480
|
-
_this.
|
|
1526
|
+
_this.route.params.pipe(operators.take(1)).subscribe(function (params) {
|
|
1527
|
+
var documentId = params === null || params === void 0 ? void 0 : params.documentId;
|
|
1528
|
+
_this.router.navigate([formDefinition.formAssociation.formLink.url], {
|
|
1529
|
+
state: Object.assign({}, (documentId && { documentId: documentId })),
|
|
1530
|
+
});
|
|
1531
|
+
});
|
|
1481
1532
|
break;
|
|
1482
1533
|
default:
|
|
1483
1534
|
_this.logger.fatal('Unsupported class name');
|
|
@@ -1509,7 +1560,9 @@
|
|
|
1509
1560
|
DossierSupportingProcessStartModalComponent.prototype.onSubmit = function (submission) {
|
|
1510
1561
|
var _this = this;
|
|
1511
1562
|
this.formioSubmission = submission;
|
|
1512
|
-
this.formLinkService
|
|
1563
|
+
this.formLinkService
|
|
1564
|
+
.onSubmit(this.processDefinitionKey, this.formAssociation.formLink.id, submission.data, this.documentId)
|
|
1565
|
+
.subscribe(function (formSubmissionResult) {
|
|
1513
1566
|
_this.modal.hide();
|
|
1514
1567
|
_this.formSubmit.emit();
|
|
1515
1568
|
}, function (errors) {
|
|
@@ -1525,7 +1578,7 @@
|
|
|
1525
1578
|
DossierSupportingProcessStartModalComponent.decorators = [
|
|
1526
1579
|
{ type: i0.Component, args: [{
|
|
1527
1580
|
selector: 'valtimo-dossier-supporting-process-start-modal',
|
|
1528
|
-
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
|
|
1581
|
+
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",
|
|
1529
1582
|
encapsulation: i0.ViewEncapsulation.None,
|
|
1530
1583
|
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}"]
|
|
1531
1584
|
},] }
|
|
@@ -1571,14 +1624,14 @@
|
|
|
1571
1624
|
TabService,
|
|
1572
1625
|
{
|
|
1573
1626
|
provide: TAB_MAP,
|
|
1574
|
-
useFactory: tabsFactory
|
|
1627
|
+
useFactory: tabsFactory,
|
|
1575
1628
|
},
|
|
1576
1629
|
{
|
|
1577
1630
|
provide: i0.ANALYZE_FOR_ENTRY_COMPONENTS,
|
|
1578
1631
|
useValue: Array.from(tabsFactory().values()),
|
|
1579
|
-
multi: true
|
|
1580
|
-
}
|
|
1581
|
-
]
|
|
1632
|
+
multi: true,
|
|
1633
|
+
},
|
|
1634
|
+
],
|
|
1582
1635
|
};
|
|
1583
1636
|
};
|
|
1584
1637
|
return DossierModule;
|
|
@@ -1595,7 +1648,7 @@
|
|
|
1595
1648
|
DossierDetailTabContactMomentsComponent,
|
|
1596
1649
|
DossierUpdateComponent,
|
|
1597
1650
|
DossierProcessStartModalComponent,
|
|
1598
|
-
DossierSupportingProcessStartModalComponent
|
|
1651
|
+
DossierSupportingProcessStartModalComponent,
|
|
1599
1652
|
],
|
|
1600
1653
|
imports: [
|
|
1601
1654
|
common.CommonModule,
|
|
@@ -1618,8 +1671,8 @@
|
|
|
1618
1671
|
loader: {
|
|
1619
1672
|
provide: core.TranslateLoader,
|
|
1620
1673
|
useFactory: ɵ0$1,
|
|
1621
|
-
deps: [http.HttpClient]
|
|
1622
|
-
}
|
|
1674
|
+
deps: [http.HttpClient],
|
|
1675
|
+
},
|
|
1623
1676
|
}),
|
|
1624
1677
|
task.TaskModule,
|
|
1625
1678
|
components.ModalModule,
|
|
@@ -1627,19 +1680,16 @@
|
|
|
1627
1680
|
components.UploaderModule,
|
|
1628
1681
|
components.DropzoneModule,
|
|
1629
1682
|
ngBootstrap.NgbPaginationModule,
|
|
1630
|
-
i1.ConfigModule
|
|
1631
|
-
],
|
|
1632
|
-
exports: [
|
|
1633
|
-
DossierListComponent,
|
|
1634
|
-
DossierDetailComponent
|
|
1683
|
+
i1.ConfigModule,
|
|
1635
1684
|
],
|
|
1685
|
+
exports: [DossierListComponent, DossierDetailComponent],
|
|
1636
1686
|
entryComponents: [
|
|
1637
1687
|
DossierDetailTabSummaryComponent,
|
|
1638
1688
|
DossierDetailTabProgressComponent,
|
|
1639
1689
|
DossierDetailTabAuditComponent,
|
|
1640
1690
|
DossierDetailTabDocumentsComponent,
|
|
1641
|
-
DossierDetailTabContactMomentsComponent
|
|
1642
|
-
]
|
|
1691
|
+
DossierDetailTabContactMomentsComponent,
|
|
1692
|
+
],
|
|
1643
1693
|
},] }
|
|
1644
1694
|
];
|
|
1645
1695
|
|