@valtimo/dossier 4.15.2-next-main.8 → 4.15.2-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.
@@ -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
  /*
@@ -1049,7 +1050,7 @@
1049
1050
  };
1050
1051
 
1051
1052
  /*
1052
- * Copyright 2015-2020 Ritense BV, the Netherlands.
1053
+ * Copyright 2015-2021 Ritense BV, the Netherlands.
1053
1054
  *
1054
1055
  * Licensed under EUPL, Version 1.2 (the "License");
1055
1056
  * you may not use this file except in compliance with the License.
@@ -1065,6 +1066,54 @@
1065
1066
  */
1066
1067
  var moment$3 = moment_;
1067
1068
  moment$3.locale(localStorage.getItem('langKey') || '');
1069
+ var DossierDetailTabContactMomentsComponent = /** @class */ (function () {
1070
+ function DossierDetailTabContactMomentsComponent(contactMomentService) {
1071
+ this.contactMomentService = contactMomentService;
1072
+ this.contactMoments = [];
1073
+ }
1074
+ DossierDetailTabContactMomentsComponent.prototype.ngOnInit = function () {
1075
+ this.loadContactMoments();
1076
+ };
1077
+ DossierDetailTabContactMomentsComponent.prototype.loadContactMoments = function () {
1078
+ var _this = this;
1079
+ this.contactMomentService.getContactMoments().subscribe(function (contactMoments) { return _this.handleContactMomentsResult(contactMoments); });
1080
+ };
1081
+ DossierDetailTabContactMomentsComponent.prototype.handleContactMomentsResult = function (contactMoments) {
1082
+ this.contactMoments = contactMoments.map(function (contactMoment) {
1083
+ var registratieDatum = moment$3(contactMoment.registratiedatum);
1084
+ return new contract.TimelineItemImpl(registratieDatum.format('DD MMM YYYY'), registratieDatum.format('HH:mm'), contactMoment.medewerkerIdentificatie.achternaam, contactMoment.kanaal, contactMoment.tekst, null);
1085
+ });
1086
+ };
1087
+ return DossierDetailTabContactMomentsComponent;
1088
+ }());
1089
+ DossierDetailTabContactMomentsComponent.decorators = [
1090
+ { type: i0.Component, args: [{
1091
+ selector: 'valtimo-dossier-detail-tab-contact-moments',
1092
+ 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",
1093
+ 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 */"]
1094
+ },] }
1095
+ ];
1096
+ DossierDetailTabContactMomentsComponent.ctorParameters = function () { return [
1097
+ { type: contactMoment.ContactMomentService }
1098
+ ]; };
1099
+
1100
+ /*
1101
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
1102
+ *
1103
+ * Licensed under EUPL, Version 1.2 (the "License");
1104
+ * you may not use this file except in compliance with the License.
1105
+ * You may obtain a copy of the License at
1106
+ *
1107
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
1108
+ *
1109
+ * Unless required by applicable law or agreed to in writing, software
1110
+ * distributed under the License is distributed on an "AS IS" basis,
1111
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
+ * See the License for the specific language governing permissions and
1113
+ * limitations under the License.
1114
+ */
1115
+ var moment$4 = moment_;
1116
+ moment$4.locale(localStorage.getItem('langKey') || '');
1068
1117
  var DossierUpdateComponent = /** @class */ (function () {
1069
1118
  function DossierUpdateComponent(taskService, documentService, route, toastr, location, dossierService) {
1070
1119
  this.taskService = taskService;
@@ -1103,10 +1152,10 @@
1103
1152
  var _this = this;
1104
1153
  this.taskService.getTask(id).subscribe(function (task) {
1105
1154
  _this.task = task;
1106
- _this.task.task.created = moment$3(_this.task.task.created).format('DD MMM YYYY HH:mm');
1155
+ _this.task.task.created = moment$4(_this.task.task.created).format('DD MMM YYYY HH:mm');
1107
1156
  _this.page = {
1108
1157
  title: _this.task.task.name,
1109
- subtitle: "Created " + moment$3(_this.task.task.created).fromNow()
1158
+ subtitle: "Created " + moment$4(_this.task.task.created).fromNow()
1110
1159
  };
1111
1160
  });
1112
1161
  };
@@ -1502,6 +1551,7 @@
1502
1551
  DossierDetailTabProgressComponent,
1503
1552
  DossierDetailTabAuditComponent,
1504
1553
  DossierDetailTabDocumentsComponent,
1554
+ DossierDetailTabContactMomentsComponent,
1505
1555
  DossierUpdateComponent,
1506
1556
  DossierProcessStartModalComponent,
1507
1557
  DossierSupportingProcessStartModalComponent
@@ -1544,7 +1594,8 @@
1544
1594
  DossierDetailTabSummaryComponent,
1545
1595
  DossierDetailTabProgressComponent,
1546
1596
  DossierDetailTabAuditComponent,
1547
- DossierDetailTabDocumentsComponent
1597
+ DossierDetailTabDocumentsComponent,
1598
+ DossierDetailTabContactMomentsComponent
1548
1599
  ]
1549
1600
  },] }
1550
1601
  ];
@@ -1572,6 +1623,7 @@
1572
1623
  exports.DEFAULT_TABS = DEFAULT_TABS;
1573
1624
  exports.DossierDetailComponent = DossierDetailComponent;
1574
1625
  exports.DossierDetailTabAuditComponent = DossierDetailTabAuditComponent;
1626
+ exports.DossierDetailTabContactMomentsComponent = DossierDetailTabContactMomentsComponent;
1575
1627
  exports.DossierDetailTabDocumentsComponent = DossierDetailTabDocumentsComponent;
1576
1628
  exports.DossierDetailTabProgressComponent = DossierDetailTabProgressComponent;
1577
1629
  exports.DossierDetailTabSummaryComponent = DossierDetailTabSummaryComponent;