UNPKG

@nepwork/dashboards

Version:

Dashboards for emergencies and monitoring

47 lines 1.53 kB
/** * @license * Copyright Akveo. All Rights Reserved. * Licensed under the MIT License. See License.txt in the project root for license information. */ import { __decorate, __metadata } from "tslib"; import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; /** * Chat message component. */ let NbChatMessageTextComponent = class NbChatMessageTextComponent { constructor() { /** * Message send date format, default 'shortTime' * @type {string} */ this.dateFormat = 'shortTime'; } }; __decorate([ Input(), __metadata("design:type", String) ], NbChatMessageTextComponent.prototype, "sender", void 0); __decorate([ Input(), __metadata("design:type", String) ], NbChatMessageTextComponent.prototype, "message", void 0); __decorate([ Input(), __metadata("design:type", Date) ], NbChatMessageTextComponent.prototype, "date", void 0); __decorate([ Input(), __metadata("design:type", String) ], NbChatMessageTextComponent.prototype, "dateFormat", void 0); NbChatMessageTextComponent = __decorate([ Component({ selector: 'nb-chat-message-text', template: ` <p class="sender" *ngIf="sender || date">{{ sender }} <time>{{ date | date: dateFormat }}</time></p> <p class="text" *ngIf="message">{{ message }}</p> `, changeDetection: ChangeDetectionStrategy.OnPush }) ], NbChatMessageTextComponent); export { NbChatMessageTextComponent }; //# sourceMappingURL=chat-message-text.component.js.map