/**
 * @fileoverview added by tsickle
 * Generated from: lib/fhir/device/details/components/status-table/device-status-table.component.ts
 * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
import { Component, Input } from '@angular/core';
import { MatTableDataSource } from '@angular/material';
export class DeviceStatusTableComponent {
    constructor() {
        this.displayedColumns = ['newStatus', 'comment', 'responsible', 'owning', 'date'];
    }
    /**
     * @return {?}
     */
    ngOnInit() {
    }
}
DeviceStatusTableComponent.decorators = [
    { type: Component, args: [{
                selector: 'inc-device-status-table',
                template: "<mat-table [dataSource]=\"list\">\r\n  <ng-container matColumnDef=\"newStatus\">\r\n    <mat-header-cell *matHeaderCellDef>{{'STATUS' | translate}}</mat-header-cell>\r\n    <mat-cell *matCellDef=\"let row\">\r\n      <ion-text id=\"row-status\" *ngIf=\"row.reason && row.reason[0]\"\r\n        [ngClass]=\"{'success': row.reason[0].text==='active', 'warning': row.reason[0].text==='entered-in-error', 'danger': row.reason[0].text==='unknown'}\">\r\n        {{row.reason[0].text | deviceStatusPipe | translate}}\r\n      </ion-text>\r\n    </mat-cell>\r\n  </ng-container>\r\n\r\n  <ng-container matColumnDef=\"comment\">\r\n    <mat-header-cell *matHeaderCellDef>{{'COMMENT' | translate}}</mat-header-cell>\r\n    <mat-cell *matCellDef=\"let row\">\r\n      <span *ngIf=\"row.reason && row.reason[1]\" class=\"truncate\"\r\n        matTooltip=\"{{row.reason[1].text}}\">{{row.reason[1].text}}</span>\r\n    </mat-cell>\r\n  </ng-container>\r\n\r\n  <ng-container matColumnDef=\"owning\">\r\n    <mat-header-cell *matHeaderCellDef>{{'PATIENT' | translate}}</mat-header-cell>\r\n    <mat-cell *matCellDef=\"let row\" class=\"ion-padding-end\">\r\n      {{row.target[0].display}}\r\n    </mat-cell>\r\n  </ng-container>\r\n\r\n  <ng-container matColumnDef=\"responsible\">\r\n    <mat-header-cell *matHeaderCellDef>{{'RESPONSIBLE' | translate}}</mat-header-cell>\r\n    <mat-cell *matCellDef=\"let row\">\r\n      {{row.agent[0].who.display}}\r\n    </mat-cell>\r\n  </ng-container>\r\n\r\n  <ng-container matColumnDef=\"date\">\r\n    <mat-header-cell *matHeaderCellDef>{{'WHEN' | translate}}</mat-header-cell>\r\n    <mat-cell *matCellDef=\"let row\">\r\n      {{row.recorded.toDate() | date:\"yyyy.MM.dd.\"}}\r\n    </mat-cell>\r\n  </ng-container>\r\n\r\n  <mat-header-row *matHeaderRowDef=\"displayedColumns; sticky: true\"></mat-header-row>\r\n  <mat-row *matRowDef=\"let row; columns: displayedColumns;\"></mat-row>\r\n</mat-table>",
                styles: [".success{color:var(--ion-color-success)}.danger{color:var(--ion-color-danger)}.warning{color:var(--ion-color-warning)}.truncate{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]
            }] }
];
/** @nocollapse */
DeviceStatusTableComponent.ctorParameters = () => [];
DeviceStatusTableComponent.propDecorators = {
    list: [{ type: Input }]
};
if (false) {
    /** @type {?} */
    DeviceStatusTableComponent.prototype.list;
    /** @type {?} */
    DeviceStatusTableComponent.prototype.displayedColumns;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGV2aWNlLXN0YXR1cy10YWJsZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaW5jbG91ZGVkL2lvbmljNC1pbmNsb3VkZWQtbGliLyIsInNvdXJjZXMiOlsibGliL2ZoaXIvZGV2aWNlL2RldGFpbHMvY29tcG9uZW50cy9zdGF0dXMtdGFibGUvZGV2aWNlLXN0YXR1cy10YWJsZS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFVLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUV6RCxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQU92RCxNQUFNLE9BQ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