import { Component, Input } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "primeng/calendar";
import * as i3 from "@angular/flex-layout/flex";
import * as i4 from "@angular/flex-layout/extended";
import * as i5 from "@angular/forms";
import * as i6 from "../validation-messages/validation-messages.component";
export class CalendarComponent {
    constructor() { }
    ngOnInit() {
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: CalendarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.5", type: CalendarComponent, selector: "smz-calendar", inputs: { input: "input", control: "control", behaviors: "behaviors" }, ngImport: i0, template: "<div class=\"ui-g ui-fluid\">\r\n    <div class=\"ui-g-12 grid-nogutter\" [ngStyle]=\"{ padding: 0 }\">\r\n        <label *ngIf=\"input.hideLabel != true\" class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\r\n        <div class=\"input_inner__wrapper grid grid-nogutter\">\r\n            <p-calendar\r\n                fxFlex=\"grow\"\r\n                class=\"col-12 grid-nogutter smz__input_value\"\r\n                [monthNavigator]=\"true\"\r\n                [yearNavigator]=\"true\"\r\n                [yearRange]=\"input.yearRange != null ? input.yearRange : '1930:2030'\"\r\n                [dateFormat]=\"input.dateFormat != null ? input.dateFormat : 'dd/mm/yy'\"\r\n\r\n                [touchUI]=\"input.touchUI != null ? input.touchUI : false\"\r\n                [focusTrap]=\"input.focusTrap != null ? input.focusTrap : true\"\r\n                [keepInvalid]=\"input.keepInvalid != null? input.keepInvalid : false\"\r\n                [showButtonBar]=\"input.showButtonBar != null ? input.showButtonBar : false\"\r\n                [showOnFocus]=\"input.showOnFocus != null ? input.showOnFocus : true\"\r\n                [showIcon]=\"input.showIcon != null ? input.showIcon : false\"\r\n                [timeOnly]=\"input.timeOnly\"\r\n                [showTime]=\"input.showTime\"\r\n\r\n                [id]=\"input.propertyName\"\r\n                [formControl]=\"control\"\r\n                appendTo=\"body\">\r\n            </p-calendar>\r\n            <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\r\n        </div>\r\n    </div>\r\n</div>", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i2.Calendar, selector: "p-calendar", inputs: ["iconDisplay", "style", "styleClass", "inputStyle", "inputId", "name", "inputStyleClass", "placeholder", "ariaLabelledBy", "ariaLabel", "iconAriaLabel", "disabled", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "icon", "appendTo", "readonlyInput", "shortYearCutoff", "monthNavigator", "yearNavigator", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "required", "showOnFocus", "showWeek", "startWeekFromFirstDayOfYear", "showClear", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autofocus", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "showTransitionOptions", "hideTransitionOptions", "tabindex", "minDate", "maxDate", "disabledDates", "disabledDays", "yearRange", "showTime", "responsiveOptions", "numberOfMonths", "firstDayOfWeek", "locale", "view", "defaultDate"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { kind: "directive", type: i3.DefaultFlexDirective, selector: "  [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md],  [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md],  [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm],  [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i4.DefaultStyleDirective, selector: "  [ngStyle],  [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl],  [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl],  [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]", inputs: ["ngStyle", "ngStyle.xs", "ngStyle.sm", "ngStyle.md", "ngStyle.lg", "ngStyle.xl", "ngStyle.lt-sm", "ngStyle.lt-md", "ngStyle.lt-lg", "ngStyle.lt-xl", "ngStyle.gt-xs", "ngStyle.gt-sm", "ngStyle.gt-md", "ngStyle.gt-lg"] }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i6.ValidationMessagesComponent, selector: "smz-validation-messages", inputs: ["input", "control", "behaviors", "extraMessages"] }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: CalendarComponent, decorators: [{
            type: Component,
            args: [{ selector: 'smz-calendar', template: "<div class=\"ui-g ui-fluid\">\r\n    <div class=\"ui-g-12 grid-nogutter\" [ngStyle]=\"{ padding: 0 }\">\r\n        <label *ngIf=\"input.hideLabel != true\" class=\"smz__input_name\" [innerHTML]=\"input.name\"></label>\r\n        <div class=\"input_inner__wrapper grid grid-nogutter\">\r\n            <p-calendar\r\n                fxFlex=\"grow\"\r\n                class=\"col-12 grid-nogutter smz__input_value\"\r\n                [monthNavigator]=\"true\"\r\n                [yearNavigator]=\"true\"\r\n                [yearRange]=\"input.yearRange != null ? input.yearRange : '1930:2030'\"\r\n                [dateFormat]=\"input.dateFormat != null ? input.dateFormat : 'dd/mm/yy'\"\r\n\r\n                [touchUI]=\"input.touchUI != null ? input.touchUI : false\"\r\n                [focusTrap]=\"input.focusTrap != null ? input.focusTrap : true\"\r\n                [keepInvalid]=\"input.keepInvalid != null? input.keepInvalid : false\"\r\n                [showButtonBar]=\"input.showButtonBar != null ? input.showButtonBar : false\"\r\n                [showOnFocus]=\"input.showOnFocus != null ? input.showOnFocus : true\"\r\n                [showIcon]=\"input.showIcon != null ? input.showIcon : false\"\r\n                [timeOnly]=\"input.timeOnly\"\r\n                [showTime]=\"input.showTime\"\r\n\r\n                [id]=\"input.propertyName\"\r\n                [formControl]=\"control\"\r\n                appendTo=\"body\">\r\n            </p-calendar>\r\n            <smz-validation-messages [input]=\"input\" [control]=\"control\" [behaviors]=\"behaviors\"></smz-validation-messages>\r\n        </div>\r\n    </div>\r\n</div>" }]
        }], ctorParameters: () => [], propDecorators: { input: [{
                type: Input
            }], control: [{
                type: Input
            }], behaviors: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FsZW5kYXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXNtei11aS9zcmMvbGliL21vZHVsZXMvc216LWZvcm1zL2NvbXBvbmVudHMvY2FsZW5kYXIvY2FsZW5kYXIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXNtei11aS9zcmMvbGliL21vZHVsZXMvc216LWZvcm1zL2NvbXBvbmVudHMvY2FsZW5kYXIvY2FsZW5kYXIuY29tcG9uZW50Lmh0bWwiX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RlRm9ybWF0IDogJ2RkL21tL3l5J1wiXHJcblxyXG4gICAgICAgICAgICAgICAgW3RvdWNoVUldPVwiaW5wdXQudG91Y2hVSSAhPSBudWxsID8gaW5wdXQudG91Y2hVSSA6IGZhbHNlXCJcclxuICAgICAgICAgICAgICAgIFtmb2N1c1RyYXBdPVwiaW5wdXQuZm9jdXNUcmFwICE9IG51bGwgPyBpbnB1dC5mb2N1c1RyYXAgOiB0cnVlXCJcclxuICAgICAgICAgICAgICAgIFtrZWVwSW52YWxpZF09XCJpbnB1dC5rZWVwSW52YWxpZCAhPSBudWxsPyBpbnB1dC5rZWVwSW52YWxpZCA6IGZhbHNlXCJcclxuICAgICAgICAgICAgICAgIFtzaG93QnV0dG9uQmFyXT1cImlucHV0LnNob3dCdXR0b25CYXIgIT0gbnVsbCA/IGlucHV0LnNob3dCdXR0b25CYXIgOiBmYWxzZVwiXHJcbiAgICAgICAgICAgICAgICBbc2hvd09uRm9jdXNdPVwiaW5wdXQuc2hvd09uRm9jdXMgIT0gbnVsbCA/IGlucHV0LnNob3dPbkZvY3VzIDogdHJ1ZVwiXHJcbiAgICAgICAgICAgICAgICBbc2hvd0ljb25dPVwiaW5wdXQuc2hvd0ljb24gIT0gbnVsbCA/IGlucHV0LnNob3dJY29uIDogZmFsc2VcIlxyXG4gICAgICAgICAgICAgICAgW3RpbWVPbmx5XT1cImlucHV0LnRpbWVPbmx5XCJcclxuICAgICAgICAgICAgICAgIFtzaG93VGltZV09XCJpbnB1dC5zaG93VGltZVwiXHJcblxyXG4gICAgICAgICAgICAgICAgW2lkXT1cImlucHV0LnByb3BlcnR5TmFtZVwiXHJcbiAgICAgICAgICAgICAgICBbZm9ybUNvbnRyb2xdPVwiY29udHJvbFwiXHJcbiAgICAgICAgICAgICAgICBhcHBlbmRUbz1cImJvZHlcIj5cclxuICAgICAgICAgICAgPC9wLWNhbGVuZGFyPlxyXG4gICAgICAgICAgICA8c216LXZhbGlkYXRpb24tbWVzc2FnZXMgW2lucHV0XT1cImlucHV0XCIgW2NvbnRyb2xdPVwiY29udHJvbFwiIFtiZWhhdmlvcnNdPVwiYmVoYXZpb3JzXCI+PC9zbXotdmFsaWRhdGlvbi1tZXNzYWdlcz5cclxuICAgICAgICA8L2Rpdj5cclxuICAgIDwvZGl2PlxyXG48L2Rpdj4iXX0=