import { Component, HostBinding, Input } from '@angular/core';
import { FormControl } from '@angular/forms';
import * as i0 from "@angular/core";
import * as i1 from "@angular/forms";
import * as i2 from "@angular/material/form-field";
import * as i3 from "./time-input/time-input.component";
import * as i4 from "@angular/common";
import * as i5 from "@aztrix/helpers";
export class TimeEditComponent {
    constructor() {
        this.propertyEditClass = true;
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: TimeEditComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.11", 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  @for (error of control.errors | keyvalue; track error.key) {\n    <mat-error>{{ error.key | errorTranslationKey | translate: error.value }}</mat-error>\n  }\n</mat-form-field>\n", styles: [":host{display:block;flex-grow:1}\n"], dependencies: [{ 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.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "component", type: i3.TimeInputComponent, selector: "ax-time-input", inputs: ["name", "placeholder", "required", "disabled", "value"] }, { kind: "pipe", type: i4.KeyValuePipe, name: "keyvalue" }, { kind: "pipe", type: i5.ErrorTranslationKeyPipe, name: "errorTranslationKey" }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", 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  @for (error of control.errors | keyvalue; track error.key) {\n    <mat-error>{{ error.key | errorTranslationKey | translate: error.value }}</mat-error>\n  }\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZS1lZGl0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9wcm9wZXJ0eS1lZGl0L29wZW5pbmctaG91cnMtZWRpdC90aW1lLWVkaXQvdGltZS1lZGl0LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9wcm9wZXJ0eS1lZGl0L29wZW5pbmctaG91cnMtZWRpdC90aW1lLWVkaXQvdGltZS1lZGl0LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsV0FBVyxFQUFFLEtBQUssRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUM1RCxPQUFPLEVBQUMsV0FBVyxFQUFDLE1BQU0sZ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