@valtimo/case 13.15.0 → 13.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1159,7 +1159,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
|
|
|
1159
1159
|
}], ctorParameters: () => [{ type: i1$2.ActivatedRoute }, { type: i2.DocumentService }] });
|
|
1160
1160
|
|
|
1161
1161
|
/*
|
|
1162
|
-
* Copyright 2015-
|
|
1162
|
+
* Copyright 2015-2026 Ritense BV, the Netherlands.
|
|
1163
1163
|
*
|
|
1164
1164
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1165
1165
|
* you may not use this file except in compliance with the License.
|
|
@@ -1198,6 +1198,16 @@ class CaseDetailTabAuditComponent {
|
|
|
1198
1198
|
this.documentService.getAuditLog(this.documentId, pageNumber).subscribe(page => {
|
|
1199
1199
|
const timelineItems = [];
|
|
1200
1200
|
page.content.forEach(auditRecord => {
|
|
1201
|
+
if (auditRecord.auditEvent.className ===
|
|
1202
|
+
'com.ritense.document.event.DocumentRetentionPeriodSetEvent') {
|
|
1203
|
+
const rawRetentionDate = auditRecord.auditEvent['retentionDate'];
|
|
1204
|
+
if (rawRetentionDate) {
|
|
1205
|
+
const retentionMoment = moment(rawRetentionDate);
|
|
1206
|
+
if (retentionMoment.isValid()) {
|
|
1207
|
+
auditRecord.auditEvent['retentionDate'] = retentionMoment.format('DD MMM YYYY HH:mm');
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1201
1211
|
const occurredOn = moment(auditRecord.metaData.occurredOn);
|
|
1202
1212
|
const fromNow = occurredOn.fromNow();
|
|
1203
1213
|
timelineItems.push(new TimelineItemImpl(occurredOn.format('DD MMM YYYY'), occurredOn.format('HH:mm'), auditRecord.metaData.user, fromNow, CaseDetailTabAuditComponent.getTranslationKey(auditRecord.auditEvent), auditRecord.auditEvent, { id: `${auditRecord.metaData.user}-${auditRecord.metaData.occurredOn}` }));
|
|
@@ -1899,6 +1909,7 @@ const CASE_WITHOUT_STATUS_STATUS = {
|
|
|
1899
1909
|
key: CASES_WITHOUT_STATUS_KEY,
|
|
1900
1910
|
documentDefinitionName: '',
|
|
1901
1911
|
title: '',
|
|
1912
|
+
retentionPeriodInDays: 0,
|
|
1902
1913
|
color: TagColor.Gray,
|
|
1903
1914
|
visibleInCaseListByDefault: false,
|
|
1904
1915
|
};
|