import { Component, Input } from '@angular/core';
import { FormControl } from '@angular/forms';
import { DateAdapter } from '@angular/material/core';
import { DateFnsDateAdapter } from '@aztrix/helpers';
import * as i0 from "@angular/core";
import * as i1 from "@angular/forms";
import * as i2 from "@angular/material/form-field";
import * as i3 from "@angular/material/input";
import * as i4 from "@angular/material/datepicker";
export class DateInputComponent {
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: DateInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: DateInputComponent, selector: "ax-date-input", inputs: { control: "control", label: "label", min: "min", max: "max" }, providers: [{ provide: DateAdapter, useClass: DateFnsDateAdapter }], ngImport: i0, template: "<mat-form-field class=\"c-input\" appearance=\"outline\" style=\"width: 100%\">\n  <mat-label>{{ label }}*</mat-label>\n  <input\n    (click)=\"datePicker.open()\"\n    matInput\n    name=\"date\"\n    [formControl]=\"control\"\n    [matDatepicker]=\"datePicker\"\n    [min]=\"min\"\n    [max]=\"max\"\n    readonly\n  />\n  <mat-datepicker-toggle matSuffix [for]=\"datePicker\"></mat-datepicker-toggle>\n  <mat-datepicker #datePicker startView=\"multi-year\"></mat-datepicker>\n</mat-form-field>\n", dependencies: [{ kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: i3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl],      input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i4.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: i4.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: i4.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: DateInputComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ax-date-input', providers: [{ provide: DateAdapter, useClass: DateFnsDateAdapter }], template: "<mat-form-field class=\"c-input\" appearance=\"outline\" style=\"width: 100%\">\n  <mat-label>{{ label }}*</mat-label>\n  <input\n    (click)=\"datePicker.open()\"\n    matInput\n    name=\"date\"\n    [formControl]=\"control\"\n    [matDatepicker]=\"datePicker\"\n    [min]=\"min\"\n    [max]=\"max\"\n    readonly\n  />\n  <mat-datepicker-toggle matSuffix [for]=\"datePicker\"></mat-datepicker-toggle>\n  <mat-datepicker #datePicker startView=\"multi-year\"></mat-datepicker>\n</mat-form-field>\n" }]
        }], propDecorators: { control: [{
                type: Input
            }], label: [{
                type: Input
            }], min: [{
                type: Input
            }], max: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS1pbnB1dC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiI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