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";
import * as i6 from "@aztrix/translate";
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: i6.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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZS1lZGl0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9wcm9wZXJ0eS1lZGl0L29wZW5pbmctaG91cnMtZWRpdC90aW1lLWVkaXQvdGltZS1lZGl0LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9wcm9wZXJ0eS1lZGl0L29wZW5pbmctaG91cnMtZWRpdC90aW1lLWVkaXQvdGltZS1lZGl0LmNvb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