import { Component, Input } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "primeng/tooltip";
import * as i3 from "../table-content-actions/table-content-actions.component";
import * as i4 from "../../pipes/table-content.pipe";
import * as i5 from "../../pipes/content-icon-matches.pipe";
export class SmzTableContentComponent {
    constructor() { }
    ngOnInit() {
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: SmzTableContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.5", type: SmzTableContentComponent, selector: "smz-table-content", inputs: { col: "col", contentTypes: "contentTypes", item: "item", rowIndex: "rowIndex", contentTemplate: "contentTemplate" }, ngImport: i0, template: "<smz-table-content-actions *ngIf=\"col.actionsAlignment === 'begin'\" [col]=\"col\" [contentTypes]=\"contentTypes\" [item]=\"item\" [rowIndex]=\"rowIndex\"></smz-table-content-actions>\r\n\r\n<ng-container [ngSwitch]=\"col.content.type\">\r\n  <ng-container *ngSwitchCase=\"contentTypes.custom\">\r\n      <div [ngClass]=\"col.content.styleClass\">\r\n          <ng-container *ngTemplateOutlet=\"contentTemplate; context: { $implicit: item, col: col }\"></ng-container>\r\n      </div>\r\n  </ng-container>\r\n\r\n  <ng-container *ngSwitchCase=\"contentTypes.currency\">\r\n      <div [ngClass]=\"col.content.styleClass\">\r\n          R$ {{ (item | tableContent : col.field : col.content.type).result }}\r\n      </div>\r\n  </ng-container>\r\n\r\n  <ng-container *ngSwitchCase=\"contentTypes.calendar\">\r\n      <div [ngClass]=\"col.content.styleClass\">\r\n          {{ (item | tableContent : col.field : col.content.type).result | date: col.content.data['format'] }}\r\n      </div>\r\n  </ng-container>\r\n\r\n  <ng-container *ngSwitchCase=\"contentTypes.text\">\r\n      <div [innerHtml]=\"(item | tableContent : col.field : col.content.type).result\" [ngClass]=\"col.content.styleClass\"></div>\r\n  </ng-container>\r\n\r\n  <ng-container *ngSwitchCase=\"contentTypes.dataTransform\">\r\n      <ng-container *ngIf=\"(item | tableContent : col.field : col.content.type) as contentData\">\r\n          <div [innerHtml]=\"contentData.result\" [ngClass]=\"col.content.styleClass\"></div>\r\n      </ng-container>\r\n  </ng-container>\r\n\r\n  <ng-container *ngSwitchCase=\"contentTypes.icon\">\r\n      <div [ngClass]=\"col.content.styleClass\">\r\n          <ng-container *ngIf=\"(col.content.data['matches'] | contentIconMatches : (item | tableContent : col.field : col.content.type).result) as match\">\r\n              <i *ngIf=\"match != null\" [ngClass]=\"match.icon + ' ' + match.class\" [pTooltip]=\"match.tooltip\"></i>\r\n          </ng-container>\r\n      </div>\r\n  </ng-container>\r\n</ng-container>\r\n\r\n<smz-table-content-actions *ngIf=\"col.actionsAlignment === 'end'\" [col]=\"col\" [contentTypes]=\"contentTypes\" [item]=\"item\" [rowIndex]=\"rowIndex\"></smz-table-content-actions>", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i2.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "component", type: i3.SmzTableContentActionsComponent, selector: "smz-table-content-actions", inputs: ["col", "contentTypes", "item", "rowIndex"] }, { kind: "pipe", type: i1.DatePipe, name: "date" }, { kind: "pipe", type: i4.SmzTableContentPipe, name: "tableContent" }, { kind: "pipe", type: i5.SmzContentIconMatchesPipe, name: "contentIconMatches" }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: SmzTableContentComponent, decorators: [{
            type: Component,
            args: [{ selector: 'smz-table-content', template: "<smz-table-content-actions *ngIf=\"col.actionsAlignment === 'begin'\" [col]=\"col\" [contentTypes]=\"contentTypes\" [item]=\"item\" [rowIndex]=\"rowIndex\"></smz-table-content-actions>\r\n\r\n<ng-container [ngSwitch]=\"col.content.type\">\r\n  <ng-container *ngSwitchCase=\"contentTypes.custom\">\r\n      <div [ngClass]=\"col.content.styleClass\">\r\n          <ng-container *ngTemplateOutlet=\"contentTemplate; context: { $implicit: item, col: col }\"></ng-container>\r\n      </div>\r\n  </ng-container>\r\n\r\n  <ng-container *ngSwitchCase=\"contentTypes.currency\">\r\n      <div [ngClass]=\"col.content.styleClass\">\r\n          R$ {{ (item | tableContent : col.field : col.content.type).result }}\r\n      </div>\r\n  </ng-container>\r\n\r\n  <ng-container *ngSwitchCase=\"contentTypes.calendar\">\r\n      <div [ngClass]=\"col.content.styleClass\">\r\n          {{ (item | tableContent : col.field : col.content.type).result | date: col.content.data['format'] }}\r\n      </div>\r\n  </ng-container>\r\n\r\n  <ng-container *ngSwitchCase=\"contentTypes.text\">\r\n      <div [innerHtml]=\"(item | tableContent : col.field : col.content.type).result\" [ngClass]=\"col.content.styleClass\"></div>\r\n  </ng-container>\r\n\r\n  <ng-container *ngSwitchCase=\"contentTypes.dataTransform\">\r\n      <ng-container *ngIf=\"(item | tableContent : col.field : col.content.type) as contentData\">\r\n          <div [innerHtml]=\"contentData.result\" [ngClass]=\"col.content.styleClass\"></div>\r\n      </ng-container>\r\n  </ng-container>\r\n\r\n  <ng-container *ngSwitchCase=\"contentTypes.icon\">\r\n      <div [ngClass]=\"col.content.styleClass\">\r\n          <ng-container *ngIf=\"(col.content.data['matches'] | contentIconMatches : (item | tableContent : col.field : col.content.type).result) as match\">\r\n              <i *ngIf=\"match != null\" [ngClass]=\"match.icon + ' ' + match.class\" [pTooltip]=\"match.tooltip\"></i>\r\n          </ng-container>\r\n      </div>\r\n  </ng-container>\r\n</ng-container>\r\n\r\n<smz-table-content-actions *ngIf=\"col.actionsAlignment === 'end'\" [col]=\"col\" [contentTypes]=\"contentTypes\" [item]=\"item\" [rowIndex]=\"rowIndex\"></smz-table-content-actions>" }]
        }], ctorParameters: () => [], propDecorators: { col: [{
                type: Input
            }], contentTypes: [{
                type: Input
            }], item: [{
                type: Input
            }], rowIndex: [{
                type: Input
            }], contentTemplate: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64, 