import { Component, Input, ChangeDetectionStrategy } 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 "./smz-info-date.pipe";
export class SmzInfoDateComponent {
    constructor() {
        this.checkForDue = false;
        this.checkForNew = false;
        this.daysCount = 0;
        this.format = 'shortDate';
    }
    ngOnInit() {
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: SmzInfoDateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.5", type: SmzInfoDateComponent, selector: "smz-info-date", inputs: { date: "date", checkForDue: "checkForDue", checkForNew: "checkForNew", daysCount: "daysCount", format: "format" }, ngImport: i0, template: "<ng-container *ngIf=\"date | smzInfoDate : daysCount as alert\">\r\n\r\n    <div class=\"date_alert_container\">\r\n        <div class=\"date_input\" [pTooltip]=\"date | date : 'medium'\">{{ date | date : format }}</div>\r\n\r\n        <div *ngIf=\"alert.isPast && checkForDue\" class=\"date_input date_alert due\">\r\n            ATRASADO\r\n        </div>\r\n\r\n        <div *ngIf=\"alert.isBetween && checkForNew\" class=\"date_input date_alert new\">\r\n            NOVO\r\n        </div>\r\n    </div>\r\n\r\n</ng-container>\r\n\r\n", styles: [".date_alert_container{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;-webkit-user-select:none;user-select:none}.date_input{margin:0 4px}.date_alert{padding:2px 10px;border-radius:2px;font-size:11px;margin-top:2px}.date_alert.due{background:red;color:#fff}.date_alert.new{background:#03a9f4;color:#fff}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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: "pipe", type: i1.DatePipe, name: "date" }, { kind: "pipe", type: i3.SmzInfoDatePipe, name: "smzInfoDate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: SmzInfoDateComponent, decorators: [{
            type: Component,
            args: [{ selector: 'smz-info-date', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"date | smzInfoDate : daysCount as alert\">\r\n\r\n    <div class=\"date_alert_container\">\r\n        <div class=\"date_input\" [pTooltip]=\"date | date : 'medium'\">{{ date | date : format }}</div>\r\n\r\n        <div *ngIf=\"alert.isPast && checkForDue\" class=\"date_input date_alert due\">\r\n            ATRASADO\r\n        </div>\r\n\r\n        <div *ngIf=\"alert.isBetween && checkForNew\" class=\"date_input date_alert new\">\r\n            NOVO\r\n        </div>\r\n    </div>\r\n\r\n</ng-container>\r\n\r\n", styles: [".date_alert_container{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;-webkit-user-select:none;user-select:none}.date_input{margin:0 4px}.date_alert{padding:2px 10px;border-radius:2px;font-size:11px;margin-top:2px}.date_alert.due{background:red;color:#fff}.date_alert.new{background:#03a9f4;color:#fff}\n"] }]
        }], ctorParameters: () => [], propDecorators: { date: [{
                type: Input
            }], checkForDue: [{
                type: Input
            }], checkForNew: [{
                type: Input
            }], daysCount: [{
                type: Input
            }], format: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic216LWluZm8tZGF0ZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtc216LXVpL3NyYy9saWIvbW9kdWxlcy9zbXotaW5mby1kYXRlL3Ntei1pbmZv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