import { Component, Input } from '@angular/core';
import { UntypedFormControl } 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/legacy-form-field";
import * as i3 from "@angular/material/legacy-input";
import * as i4 from "@angular/material/datepicker";
export class DateInputComponent {
}
DateInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DateInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
DateInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", 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.MatLegacyFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatLegacyLabel, selector: "mat-label" }, { kind: "directive", type: i2.MatLegacySuffix, selector: "[matSuffix]" }, { kind: "directive", type: i3.MatLegacyInput, selector: "input[matInput], textarea[matInput], select[matNativeControl],      input[matNativeControl], textarea[matNativeControl]", 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: "15.1.5", 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS1pbnB1dC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvcH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