/**
 * @fileoverview added by tsickle
 * Generated from: lib/fhir/care-plan/details-changes/changes/details-changes.component.ts
 * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
import { Component } from '@angular/core';
import { AbstractDetailsComponent } from '../../../../shared/abstracts/details/abstract-details/abstract-details.component';
import { TranslatePipe } from '../../../../shared/translate/pipes/translate.pipe';
import { stringToDetailChanges } from '../../../functions/details.changes.function';
/** @type {?} */
const OPERATION_NAMES = {
    Count: 'COUNT',
    Avg: 'AVERAGE',
    Std: 'SCATTER',
};
/** @type {?} */
const COLS = [
    { name: 'NAME_COMMENT', colSize: 3 },
    { name: 'CHANGED_VALUE', colSize: 4.5 },
    { name: 'CHANGE', colSize: 4.5 }
];
export class DetailsChangesComponent extends AbstractDetailsComponent {
    /**
     * @param {?} translatePipe
     */
    constructor(translatePipe) {
        super();
        this.translatePipe = translatePipe;
        this.cols = COLS;
    }
    /**
     * @return {?}
     */
    ngOnInit() {
        this.setDetailsChanges();
    }
    /**
     * @return {?}
     */
    setDetailsChanges() {
        this.detailsChangesViews = stringToDetailChanges(this.inData, this.translatePipe);
    }
}
DetailsChangesComponent.decorators = [
    { type: Component, args: [{
                selector: 'inc-details-changes',
                template: "<ion-grid class=\"ion-no-padding\">\r\n  <ng-container *ngIf=\"detailsChangesViews && detailsChangesViews[0]\">\r\n    <ion-row class=\"title\">\r\n      <ion-col *ngFor=\"let col of cols;\" [size]=\"col.colSize\">\r\n        <ion-text>{{col.name | translate}}</ion-text>\r\n      </ion-col>\r\n    </ion-row>\r\n    <ng-container *ngFor=\"let detailsChange of detailsChangesViews\">\r\n      <ion-row class=\"row-data\">\r\n        <ion-col *ngFor=\"let col of cols; let i = index\" [size]=\"col.colSize\">\r\n          <ng-container *ngIf=\"detailsChange.values[i]; else noValue\">\r\n            <ion-text>{{detailsChange.values[i]}}</ion-text>\r\n          </ng-container>\r\n          <ng-template #noValue>\r\n            <ion-text color=\"warning\"><b>!</b></ion-text>\r\n          </ng-template>\r\n        </ion-col>\r\n      </ion-row>\r\n      <ion-row class=\"ion-padding-top\">\r\n        <ion-col size=\"12\">\r\n          <inc-alert-comment-details [inData]=\"detailsChange.comment\"></inc-alert-comment-details>\r\n        </ion-col>\r\n      </ion-row>\r\n    </ng-container>\r\n  </ng-container>\r\n</ion-grid>",
                styles: [".title ion-col:first-child ion-text{font-weight:700}.title ion-col{padding-top:0;padding-bottom:0}.title ion-col ion-text{word-break:break-all;display:flex;color:var(--ion-color-primary);padding-top:7px}.row-data ion-col:first-child ion-text{font-weight:700}.row-data ion-col{padding-top:0;padding-bottom:0}.row-data ion-col ion-text{word-break:break-all;display:flex;padding-top:7px}"]
            }] }
];
/** @nocollapse */
DetailsChangesComponent.ctorParameters = () => [
    { type: TranslatePipe }
];
if (false) {
    /** @type {?} */
    DetailsChangesComponent.prototype.cols;
    /** @type {?} */
    DetailsChangesComponent.prototype.detailsChangesViews;
    /**
     * @type {?}
     * @private
     */
    DetailsChangesComponent.prototype.translatePipe;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGV0YWlscy1jaGFuZ2VzLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BpbmNsb3VkZWQvaW9uaWM0LWluY2xvdWRlZC1saWIvIiwic291cmNlcyI6WyJsaWIvZmhpci9jYXJlLXBsYW4vZGV0YWlscy1jaGFuZ2VzL2NoYW5nZXMvZGV0YWlscy1jaGFuZ2VzLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQWdDLE1BQU0sZUFBZSxDQUFDO0FBQ3hFLE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLGtGQUFrRixDQUFDO0FBRTVILE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxtREFBbUQsQ0FBQztBQUVsRixPQUFPLEVBQUU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