@valtimo/dossier 4.15.2 → 4.15.3-next-main.14
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 +82 -13
- package/bundles/valtimo-dossier.umd.js.map +1 -1
- package/bundles/valtimo-dossier.umd.min.js +2 -2
- package/bundles/valtimo-dossier.umd.min.js.map +1 -1
- package/esm2015/lib/dossier-detail/dossier-detail.component.js +2 -2
- package/esm2015/lib/dossier-detail/tab/audit/audit.component.js +20 -5
- package/esm2015/lib/dossier-detail/tab/contact-moments/contact-moments.component.js +50 -0
- package/esm2015/lib/dossier-detail-tab-enum.js +2 -1
- package/esm2015/lib/dossier.module.js +10 -3
- package/esm2015/public_api.js +2 -1
- package/fesm2015/valtimo-dossier.js +80 -13
- package/fesm2015/valtimo-dossier.js.map +1 -1
- package/lib/dossier-detail/tab/audit/audit.component.d.ts +7 -1
- package/lib/dossier-detail/tab/contact-moments/contact-moments.component.d.ts +11 -0
- package/lib/dossier-detail-tab-enum.d.ts +2 -1
- package/package.json +1 -4
- package/public_api.d.ts +1 -0
- package/valtimo-dossier.metadata.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/router'), require('@ngx-translate/core'), require('@valtimo/document'), require('moment'), require('rxjs'), require('@valtimo/config'), require('@valtimo/contract'), require('@angular/common'), require('@valtimo/process'), require('@valtimo/task'), require('@valtimo/form'), require('@valtimo/security'), require('ngx-spinner'), require('ngx-toastr'), require('@valtimo/resource'), require('rxjs/operators'), require('@valtimo/components'), require('@ng-bootstrap/ng-bootstrap'), require('@valtimo/form-link'), require('ngx-logger'), require('@angular/forms'), require('@angular/common/http')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@valtimo/dossier', ['exports', '@angular/core', '@angular/router', '@ngx-translate/core', '@valtimo/document', 'moment', 'rxjs', '@valtimo/config', '@valtimo/contract', '@angular/common', '@valtimo/process', '@valtimo/task', '@valtimo/form', '@valtimo/security', 'ngx-spinner', 'ngx-toastr', '@valtimo/resource', 'rxjs/operators', '@valtimo/components', '@ng-bootstrap/ng-bootstrap', '@valtimo/form-link', 'ngx-logger', '@angular/forms', '@angular/common/http'], factory) :
|
|
4
|
-
(global = global || self, factory((global.valtimo = global.valtimo || {}, global.valtimo.dossier = {}), global.ng.core, global.ng.router, global.core$1, global.document, global.moment, global.rxjs, global.config, global.contract, global.ng.common, global.process, global.task, global.form, global.security, global.ngxSpinner, global.ngxToastr, global.resource, global.rxjs.operators, global.components, global.ngBootstrap, global.formLink, global.ngxLogger, global.ng.forms, global.ng.common.http));
|
|
5
|
-
}(this, (function (exports, i0, router, core, document, moment_, rxjs, i1, contract, common, process, task, form, security, ngxSpinner, ngxToastr, resource, operators, components, ngBootstrap, formLink, ngxLogger, forms, http) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/router'), require('@ngx-translate/core'), require('@valtimo/document'), require('moment'), require('rxjs'), require('@valtimo/config'), require('@valtimo/contract'), require('@angular/common'), require('@valtimo/process'), require('@valtimo/task'), require('@valtimo/form'), require('@valtimo/security'), require('ngx-spinner'), require('ngx-toastr'), require('@valtimo/resource'), require('rxjs/operators'), require('@valtimo/contact-moment'), require('@valtimo/components'), require('@ng-bootstrap/ng-bootstrap'), require('@valtimo/form-link'), require('ngx-logger'), require('@angular/forms'), require('@angular/common/http')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@valtimo/dossier', ['exports', '@angular/core', '@angular/router', '@ngx-translate/core', '@valtimo/document', 'moment', 'rxjs', '@valtimo/config', '@valtimo/contract', '@angular/common', '@valtimo/process', '@valtimo/task', '@valtimo/form', '@valtimo/security', 'ngx-spinner', 'ngx-toastr', '@valtimo/resource', 'rxjs/operators', '@valtimo/contact-moment', '@valtimo/components', '@ng-bootstrap/ng-bootstrap', '@valtimo/form-link', 'ngx-logger', '@angular/forms', '@angular/common/http'], factory) :
|
|
4
|
+
(global = global || self, factory((global.valtimo = global.valtimo || {}, global.valtimo.dossier = {}), global.ng.core, global.ng.router, global.core$1, global.document, global.moment, global.rxjs, global.config, global.contract, global.ng.common, global.process, global.task, global.form, global.security, global.ngxSpinner, global.ngxToastr, global.resource, global.rxjs.operators, global.contactMoment, global.components, global.ngBootstrap, global.formLink, global.ngxLogger, global.ng.forms, global.ng.common.http));
|
|
5
|
+
}(this, (function (exports, i0, router, core, document, moment_, rxjs, i1, contract, common, process, task, form, security, ngxSpinner, ngxToastr, resource, operators, contactMoment, components, ngBootstrap, formLink, ngxLogger, forms, http) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/*! *****************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -325,6 +325,7 @@
|
|
|
325
325
|
DefaultTabs["progress"] = "progress";
|
|
326
326
|
DefaultTabs["audit"] = "audit";
|
|
327
327
|
DefaultTabs["documents"] = "documents";
|
|
328
|
+
DefaultTabs["contactMoments"] = "contact-moments";
|
|
328
329
|
})(exports.DefaultTabs || (exports.DefaultTabs = {}));
|
|
329
330
|
|
|
330
331
|
/*
|
|
@@ -766,6 +767,8 @@
|
|
|
766
767
|
this.route = route;
|
|
767
768
|
this.documentService = documentService;
|
|
768
769
|
this.spinnerService = spinnerService;
|
|
770
|
+
this.paginationClicked = new i0.EventEmitter();
|
|
771
|
+
this.defaultAuditPage = 0;
|
|
769
772
|
this.spinnerService.show('auditSpinner');
|
|
770
773
|
var snapshot = this.route.snapshot.paramMap;
|
|
771
774
|
this.documentId = snapshot.get('documentId') || '';
|
|
@@ -776,8 +779,11 @@
|
|
|
776
779
|
return 'events.' + eventName;
|
|
777
780
|
};
|
|
778
781
|
DossierDetailTabAuditComponent.prototype.ngOnInit = function () {
|
|
782
|
+
this.loadAuditPage(this.defaultAuditPage);
|
|
783
|
+
};
|
|
784
|
+
DossierDetailTabAuditComponent.prototype.loadAuditPage = function (pageNumber) {
|
|
779
785
|
var _this = this;
|
|
780
|
-
this.documentService.getAuditLog(this.documentId).subscribe(function (page) {
|
|
786
|
+
this.documentService.getAuditLog(this.documentId, pageNumber).subscribe(function (page) {
|
|
781
787
|
var timelineItems = [];
|
|
782
788
|
page.content.forEach(function (auditRecord) {
|
|
783
789
|
var occurredOn = moment$2(auditRecord.metaData.occurredOn);
|
|
@@ -786,15 +792,22 @@
|
|
|
786
792
|
});
|
|
787
793
|
_this.timelineItems = timelineItems;
|
|
788
794
|
_this.spinnerService.hide('auditSpinner');
|
|
795
|
+
_this.pagination = page;
|
|
796
|
+
_this.pagination.number += 1;
|
|
789
797
|
});
|
|
790
798
|
};
|
|
799
|
+
DossierDetailTabAuditComponent.prototype.onChangePagination = function (page) {
|
|
800
|
+
this.paginationClicked.emit(page);
|
|
801
|
+
this.currentAuditPage = page - 1;
|
|
802
|
+
this.loadAuditPage(this.currentAuditPage);
|
|
803
|
+
};
|
|
791
804
|
return DossierDetailTabAuditComponent;
|
|
792
805
|
}());
|
|
793
806
|
DossierDetailTabAuditComponent.decorators = [
|
|
794
807
|
{ type: i0.Component, args: [{
|
|
795
808
|
selector: 'valtimo-dossier-detail-tab-audit',
|
|
796
|
-
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div *ngIf=\"timelineItems\">\n <valtimo-timeline [items]=\"timelineItems\"></valtimo-timeline>\n</div>\n<valtimo-spinner\n [useBootstrapSpinner]=\"false\"\n name=\"auditSpinner\"\n bdColor=\"rgba(125, 125, 125, 0.35)\"\n color=\"#264251\"\n type=\"square-jelly-box\"\n>\n</valtimo-spinner>\n",
|
|
797
|
-
styles: [""]
|
|
809
|
+
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div *ngIf=\"timelineItems\">\n <valtimo-timeline [items]=\"timelineItems\"></valtimo-timeline>\n</div>\n<valtimo-spinner\n [useBootstrapSpinner]=\"false\"\n name=\"auditSpinner\"\n bdColor=\"rgba(125, 125, 125, 0.35)\"\n color=\"#264251\"\n type=\"square-jelly-box\"\n>\n</valtimo-spinner>\n<div\n class=\"pagination-holder audit-pagination bg-light px-4 pt-4 pb-2 overflow-auto row mr-0 ml-0\"\n *ngIf=\"pagination && pagination.totalElements > pagination.size\"\n>\n <div class=\"float-left page-count col-4\">\n <strong>{{ 'list.currentPage' | translate: {current: pagination.number, total: pagination.totalPages} }}</strong>\n <br />\n {{\n pagination.totalElements === 1\n ? ('list.showingResult' | translate: {number: pagination.content.length})\n : ('list.showingResults'\n | translate: {number: pagination.content.length, total: pagination.totalElements})\n }}\n </div>\n <div class=\"col-8\">\n <ngb-pagination\n *ngIf=\"pagination.totalElements > pagination.size\"\n class=\"float-right\"\n [collectionSize]=\"pagination.totalElements\"\n [(page)]=\"pagination.number\"\n [pageSize]=\"pagination.size\"\n [maxSize]=\"pagination.size\"\n [rotate]=\"true\"\n (pageChange)=\"onChangePagination(pagination.number)\"></ngb-pagination>\n </div>\n</div>\n",
|
|
810
|
+
styles: [".audit-pagination{border-top:1px solid #dee2e6;margin:0 -1.923rem -1.923rem!important}"]
|
|
798
811
|
},] }
|
|
799
812
|
];
|
|
800
813
|
DossierDetailTabAuditComponent.ctorParameters = function () { return [
|
|
@@ -802,6 +815,9 @@
|
|
|
802
815
|
{ type: document.DocumentService },
|
|
803
816
|
{ type: ngxSpinner.NgxSpinnerService }
|
|
804
817
|
]; };
|
|
818
|
+
DossierDetailTabAuditComponent.propDecorators = {
|
|
819
|
+
paginationClicked: [{ type: i0.Output }]
|
|
820
|
+
};
|
|
805
821
|
|
|
806
822
|
/*
|
|
807
823
|
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
@@ -1029,7 +1045,7 @@
|
|
|
1029
1045
|
DossierDetailComponent.decorators = [
|
|
1030
1046
|
{ type: i0.Component, args: [{
|
|
1031
1047
|
selector: 'valtimo-dossier-detail',
|
|
1032
|
-
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"main-content\">\n <div class=\"container-fluid\">\n <div class=\"col-12 px-0 mb-5\">\n <valtimo-widget>\n <div class=\"card-header bg-light card-header-divider pb-5\">\n {{ documentDefinitionNameTitle }}\n <div class=\"float-right\">\n <div class=\"dropdown\">\n <button class=\"btn btn-primary dropdown-toggle\" type=\"button\"\n id=\"startProcessDropdown\" placement=\"bottom\"\n [ngbTooltip]=\"processDocumentDefinitions.length === 0 ? 'No action' : null\"\n [disabled]=\"processDocumentDefinitions.length === 0\"\n data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\">\n <span>Start</span>\n <i class=\"pl-2 fas fa-caret-down\"></i>\n </button>\n <div class=\"dropdown-menu dropdown-menu-right\" aria-labelledby=\"startProcessDropdown\">\n <button *ngFor=\"let processDocumentDefinition of processDocumentDefinitions\" class=\"dropdown-item p\"\n href=\"#\"\n (click)=\"startProcess(processDocumentDefinition)\">{{processDocumentDefinition.processName}}</button>\n </div>\n </div>\n </div>\n </div>\n <ul class=\"nav nav-tabs\">\n <li class=\"nav-item\" *ngFor=\"let tab of tabLoader.tabs\">\n <a id=\"{{ tab.name }}-tab\" class=\"nav-link clickable\"\n [ngClass]=\"{'active' : tab.isActive()}\"\n data-toggle=\"tab\"\n (click)=\"tabLoader.load(tab)\">\n {{ tabLoader.translateTabName(tab) }}\n </a>\n </li>\n </ul>\n <div class=\"card-body bg-white p-5 position-relative tab-container\">\n <ng-template #tabContainer>Loading...</ng-template>\n <div class=\"clearfix\"></div>\n </div>\n </valtimo-widget>\n </div>\n <valtimo-dossier-supporting-process-start-modal (formSubmit)=\"tabLoader.refreshView()\"\n #supportingProcessStartModal></valtimo-dossier-supporting-process-start-modal>\n </div>\n</div>\n",
|
|
1048
|
+
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"main-content\">\n <div class=\"container-fluid\">\n <div class=\"col-12 px-0 mb-5\">\n <valtimo-widget>\n <div class=\"card-header bg-light card-header-divider pb-5\">\n {{ documentDefinitionNameTitle }}\n <div class=\"btn-group mt-m3px mb-3 float-right\">\n <valtimo-extension\n module=\"dossier\"\n page=\"dossier-detail\"\n section=\"card-header\"\n ></valtimo-extension>\n <div class=\"dropdown\">\n <button class=\"btn btn-primary dropdown-toggle\" type=\"button\"\n id=\"startProcessDropdown\" placement=\"bottom\"\n [ngbTooltip]=\"processDocumentDefinitions.length === 0 ? 'No action' : null\"\n [disabled]=\"processDocumentDefinitions.length === 0\"\n data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\">\n <span>Start</span>\n <i class=\"pl-2 fas fa-caret-down\"></i>\n </button>\n <div class=\"dropdown-menu dropdown-menu-right\" aria-labelledby=\"startProcessDropdown\">\n <button *ngFor=\"let processDocumentDefinition of processDocumentDefinitions\" class=\"dropdown-item p\"\n href=\"#\"\n (click)=\"startProcess(processDocumentDefinition)\">{{processDocumentDefinition.processName}}</button>\n </div>\n </div>\n </div>\n </div>\n <ul class=\"nav nav-tabs\">\n <li class=\"nav-item\" *ngFor=\"let tab of tabLoader.tabs\">\n <a id=\"{{ tab.name }}-tab\" class=\"nav-link clickable\"\n [ngClass]=\"{'active' : tab.isActive()}\"\n data-toggle=\"tab\"\n (click)=\"tabLoader.load(tab)\">\n {{ tabLoader.translateTabName(tab) }}\n </a>\n </li>\n </ul>\n <div class=\"card-body bg-white p-5 position-relative tab-container\">\n <ng-template #tabContainer>Loading...</ng-template>\n <div class=\"clearfix\"></div>\n </div>\n </valtimo-widget>\n </div>\n <valtimo-dossier-supporting-process-start-modal (formSubmit)=\"tabLoader.refreshView()\"\n #supportingProcessStartModal></valtimo-dossier-supporting-process-start-modal>\n </div>\n</div>\n",
|
|
1033
1049
|
styles: [".tab-container{min-height:300px}"]
|
|
1034
1050
|
},] }
|
|
1035
1051
|
];
|
|
@@ -1049,7 +1065,7 @@
|
|
|
1049
1065
|
};
|
|
1050
1066
|
|
|
1051
1067
|
/*
|
|
1052
|
-
* Copyright 2015-
|
|
1068
|
+
* Copyright 2015-2021 Ritense BV, the Netherlands.
|
|
1053
1069
|
*
|
|
1054
1070
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1055
1071
|
* you may not use this file except in compliance with the License.
|
|
@@ -1065,6 +1081,54 @@
|
|
|
1065
1081
|
*/
|
|
1066
1082
|
var moment$3 = moment_;
|
|
1067
1083
|
moment$3.locale(localStorage.getItem('langKey') || '');
|
|
1084
|
+
var DossierDetailTabContactMomentsComponent = /** @class */ (function () {
|
|
1085
|
+
function DossierDetailTabContactMomentsComponent(contactMomentService) {
|
|
1086
|
+
this.contactMomentService = contactMomentService;
|
|
1087
|
+
this.contactMoments = [];
|
|
1088
|
+
}
|
|
1089
|
+
DossierDetailTabContactMomentsComponent.prototype.ngOnInit = function () {
|
|
1090
|
+
this.loadContactMoments();
|
|
1091
|
+
};
|
|
1092
|
+
DossierDetailTabContactMomentsComponent.prototype.loadContactMoments = function () {
|
|
1093
|
+
var _this = this;
|
|
1094
|
+
this.contactMomentService.getContactMoments().subscribe(function (contactMoments) { return _this.handleContactMomentsResult(contactMoments); });
|
|
1095
|
+
};
|
|
1096
|
+
DossierDetailTabContactMomentsComponent.prototype.handleContactMomentsResult = function (contactMoments) {
|
|
1097
|
+
this.contactMoments = contactMoments.map(function (contactMoment) {
|
|
1098
|
+
var registratieDatum = moment$3(contactMoment.registratiedatum);
|
|
1099
|
+
return new contract.TimelineItemImpl(registratieDatum.format('DD MMM YYYY'), registratieDatum.format('HH:mm'), contactMoment.medewerkerIdentificatie.achternaam, contactMoment.kanaal, contactMoment.tekst, null);
|
|
1100
|
+
});
|
|
1101
|
+
};
|
|
1102
|
+
return DossierDetailTabContactMomentsComponent;
|
|
1103
|
+
}());
|
|
1104
|
+
DossierDetailTabContactMomentsComponent.decorators = [
|
|
1105
|
+
{ type: i0.Component, args: [{
|
|
1106
|
+
selector: 'valtimo-dossier-detail-tab-contact-moments',
|
|
1107
|
+
template: "<!--\n ~ Copyright 2015-2021 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div *ngIf=\"contactMoments\">\n <valtimo-timeline [items]=\"contactMoments\"></valtimo-timeline>\n</div>\n\n",
|
|
1108
|
+
styles: ["/*!\n * Copyright 2015-2021 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */"]
|
|
1109
|
+
},] }
|
|
1110
|
+
];
|
|
1111
|
+
DossierDetailTabContactMomentsComponent.ctorParameters = function () { return [
|
|
1112
|
+
{ type: contactMoment.ContactMomentService }
|
|
1113
|
+
]; };
|
|
1114
|
+
|
|
1115
|
+
/*
|
|
1116
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
1117
|
+
*
|
|
1118
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1119
|
+
* you may not use this file except in compliance with the License.
|
|
1120
|
+
* You may obtain a copy of the License at
|
|
1121
|
+
*
|
|
1122
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1123
|
+
*
|
|
1124
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1125
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
1126
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1127
|
+
* See the License for the specific language governing permissions and
|
|
1128
|
+
* limitations under the License.
|
|
1129
|
+
*/
|
|
1130
|
+
var moment$4 = moment_;
|
|
1131
|
+
moment$4.locale(localStorage.getItem('langKey') || '');
|
|
1068
1132
|
var DossierUpdateComponent = /** @class */ (function () {
|
|
1069
1133
|
function DossierUpdateComponent(taskService, documentService, route, toastr, location, dossierService) {
|
|
1070
1134
|
this.taskService = taskService;
|
|
@@ -1103,10 +1167,10 @@
|
|
|
1103
1167
|
var _this = this;
|
|
1104
1168
|
this.taskService.getTask(id).subscribe(function (task) {
|
|
1105
1169
|
_this.task = task;
|
|
1106
|
-
_this.task.task.created = moment$
|
|
1170
|
+
_this.task.task.created = moment$4(_this.task.task.created).format('DD MMM YYYY HH:mm');
|
|
1107
1171
|
_this.page = {
|
|
1108
1172
|
title: _this.task.task.name,
|
|
1109
|
-
subtitle: "Created " + moment$
|
|
1173
|
+
subtitle: "Created " + moment$4(_this.task.task.created).fromNow()
|
|
1110
1174
|
};
|
|
1111
1175
|
});
|
|
1112
1176
|
};
|
|
@@ -1502,6 +1566,7 @@
|
|
|
1502
1566
|
DossierDetailTabProgressComponent,
|
|
1503
1567
|
DossierDetailTabAuditComponent,
|
|
1504
1568
|
DossierDetailTabDocumentsComponent,
|
|
1569
|
+
DossierDetailTabContactMomentsComponent,
|
|
1505
1570
|
DossierUpdateComponent,
|
|
1506
1571
|
DossierProcessStartModalComponent,
|
|
1507
1572
|
DossierSupportingProcessStartModalComponent
|
|
@@ -1534,7 +1599,9 @@
|
|
|
1534
1599
|
components.ModalModule,
|
|
1535
1600
|
ngBootstrap.NgbTooltipModule,
|
|
1536
1601
|
components.UploaderModule,
|
|
1537
|
-
components.DropzoneModule
|
|
1602
|
+
components.DropzoneModule,
|
|
1603
|
+
ngBootstrap.NgbPaginationModule,
|
|
1604
|
+
i1.ConfigModule
|
|
1538
1605
|
],
|
|
1539
1606
|
exports: [
|
|
1540
1607
|
DossierListComponent,
|
|
@@ -1544,7 +1611,8 @@
|
|
|
1544
1611
|
DossierDetailTabSummaryComponent,
|
|
1545
1612
|
DossierDetailTabProgressComponent,
|
|
1546
1613
|
DossierDetailTabAuditComponent,
|
|
1547
|
-
DossierDetailTabDocumentsComponent
|
|
1614
|
+
DossierDetailTabDocumentsComponent,
|
|
1615
|
+
DossierDetailTabContactMomentsComponent
|
|
1548
1616
|
]
|
|
1549
1617
|
},] }
|
|
1550
1618
|
];
|
|
@@ -1572,6 +1640,7 @@
|
|
|
1572
1640
|
exports.DEFAULT_TABS = DEFAULT_TABS;
|
|
1573
1641
|
exports.DossierDetailComponent = DossierDetailComponent;
|
|
1574
1642
|
exports.DossierDetailTabAuditComponent = DossierDetailTabAuditComponent;
|
|
1643
|
+
exports.DossierDetailTabContactMomentsComponent = DossierDetailTabContactMomentsComponent;
|
|
1575
1644
|
exports.DossierDetailTabDocumentsComponent = DossierDetailTabDocumentsComponent;
|
|
1576
1645
|
exports.DossierDetailTabProgressComponent = DossierDetailTabProgressComponent;
|
|
1577
1646
|
exports.DossierDetailTabSummaryComponent = DossierDetailTabSummaryComponent;
|