mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
30 lines
774 B
TypeScript
30 lines
774 B
TypeScript
|
|
import { Pipe, PipeTransform } from '@angular/core';
|
||
|
|
import { Publication } from 'src/app/models/publication';
|
||
|
|
|
||
|
|
@Pipe({
|
||
|
|
name: 'publication'
|
||
|
|
})
|
||
|
|
export class PublicationPipe implements PipeTransform {
|
||
|
|
|
||
|
|
transform(value: unknown, ...args: unknown[]): unknown {
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
|
||
|
|
itemList(element ): Publication {
|
||
|
|
return {
|
||
|
|
"DateIndex": element.DateIndex,
|
||
|
|
"DocumentId":element.DocumentId,
|
||
|
|
"ProcessId":element.ProcessId,
|
||
|
|
"Title":element.Title,
|
||
|
|
"Message": element.Message,
|
||
|
|
"DatePublication": element.DatePublication,
|
||
|
|
/* image:itemImage, */
|
||
|
|
"FileBase64": "data:image/jpg;base64," + element.FileBase64,
|
||
|
|
"OriginalFileName": '',
|
||
|
|
"FileExtension": '',
|
||
|
|
"OrganicEntityId": element.OrganicEntityId
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|