import { Component, HostBinding, Input } from '@angular/core';
import { FormControl } 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/form-field";
import * as i4 from "./time-input/time-input.component";
import * as i5 from "@aztrix/helpers";
export class TimeEditComponent {
    constructor() {
        this.propertyEditClass = true;
        this.readonly = false;
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: TimeEditComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: TimeEditComponent, selector: "ax-time-edit", inputs: { control: "control", name: "name", label: "label", readonly: "readonly" }, host: { properties: { "class.c-property-edit": "this.propertyEditClass" } }, ngImport: i0, template: "<mat-form-field\n  appearance=\"outline\"\n  class=\"c-input remove-subtext\"\n  [ngClass]=\"{readonly: readonly}\"\n  floatLabel=\"always\"\n>\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.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { 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: "17.3.12", ngImport: i0, type: TimeEditComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ax-time-edit', template: "<mat-form-field\n  appearance=\"outline\"\n  class=\"c-input remove-subtext\"\n  [ngClass]=\"{readonly: readonly}\"\n  floatLabel=\"always\"\n>\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
            }], readonly: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZS1lZGl0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9wcm9wZXJ0eS1lZGl0L29wZW5pbmctaG91cnMtZWRpdC90aW1lLWVkaXQvdGltZS1lZGl0LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9wcm9wZXJ0eS1lZGl0L29wZW5pbmctaG91cnMtZWRpdC90aW1lLWVkaXQvdGltZS1lZGl0LmNvbXBvbmVudC5odG1sIl0sI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