import { Component, HostBinding, Input } from '@angular/core';
import { UntypedFormControl } from '@angular/forms';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "@angular/forms";
import * as i3 from "@angular/material/legacy-form-field";
import * as i4 from "./time-input/time-input.component";
import * as i5 from "@aztrix/helpers";
export class TimeEditComponent {
    constructor() {
        this.propertyEditClass = true;
    }
}
TimeEditComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TimeEditComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
TimeEditComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: TimeEditComponent, selector: "ax-time-edit", inputs: { control: "control", name: "name", label: "label" }, host: { properties: { "class.c-property-edit": "this.propertyEditClass" } }, ngImport: i0, template: "<mat-form-field appearance=\"outline\" class=\"c-input remove-subtext\" floatLabel=\"always\">\n  <mat-label>{{ label }}</mat-label>\n  <ax-time-input [name]=\"name\" autocomplete=\"off\" [formControl]=\"control\"></ax-time-input>\n  <mat-error *ngFor=\"let error of control.errors | keyvalue\">{{\n    error.key | errorTranslationKey | translate: error.value\n  }}</mat-error>\n</mat-form-field>\n", styles: [":host{display:block;flex-grow:1}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.MatLegacyError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i3.MatLegacyFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLegacyLabel, selector: "mat-label" }, { kind: "component", type: i4.TimeInputComponent, selector: "ax-time-input", inputs: ["name", "placeholder", "required", "disabled", "value"] }, { kind: "pipe", type: i1.KeyValuePipe, name: "keyvalue" }, { kind: "pipe", type: i5.ErrorTranslationKeyPipe, name: "errorTranslationKey" }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: TimeEditComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ax-time-edit', template: "<mat-form-field appearance=\"outline\" class=\"c-input remove-subtext\" floatLabel=\"always\">\n  <mat-label>{{ label }}</mat-label>\n  <ax-time-input [name]=\"name\" autocomplete=\"off\" [formControl]=\"control\"></ax-time-input>\n  <mat-error *ngFor=\"let error of control.errors | keyvalue\">{{\n    error.key | errorTranslationKey | translate: error.value\n  }}</mat-error>\n</mat-form-field>\n", styles: [":host{display:block;flex-grow:1}\n"] }]
        }], propDecorators: { propertyEditClass: [{
                type: HostBinding,
                args: ['class.c-property-edit']
            }], control: [{
                type: Input
            }], name: [{
                type: Input
            }], label: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZS1lZGl0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9wcm9wZXJ0eS1lZGl0L29wZW5pbmctaG91cnMtZWRpdC90aW1lLWVkaXQvdGltZS1lZGl0LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9wcm9wZXJ0eS1lZGl0L29wZW5pbmctaG91cnMtZWRpdC90aW1lLWVkaXQvdGltZS1lZGl0LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsV0FBVyxFQUFFL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