import { Component } from '@angular/core';
import { FormControl } from '@angular/forms';
import { BaseControl } from '../basecontrol';
import * as i0 from "@angular/core";
import * as i1 from "../../service/common.service";
import * as i2 from "../form-box/form-box.component";
import * as i3 from "ng-devui";
import * as i4 from "@angular/common";
import * as i5 from "@angular/forms";
export class FormTimeComponent extends BaseControl {
    constructor(commonService) {
        super(commonService);
        this.commonService = commonService;
        this.control = new FormControl();
    }
    ngOnInit() {
    }
}
FormTimeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: FormTimeComponent, deps: [{ token: i1.CommonService }], target: i0.ɵɵFactoryTarget.Component });
FormTimeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.6", type: FormTimeComponent, selector: "form-time", usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"data.mode=='op'; else detail\">\r\n    <form-box #box [mainCarry]=\"detail\" [name]=\"data.name\" [controltype]=\"data.controltype\" (controlclick)=\"onClick($event)\"></form-box>\r\n</ng-container>\r\n  <ng-template #detail>\r\n      <d-form-item>\r\n          <d-form-label [required]=\"data.required\" [hasHelp]=\"data.help\" [helpTips]=\"data.helptip||''\">{{data.label}}</d-form-label>\r\n          <d-form-control>\r\n            <div class=\"devui-input-group devui-dropdown-origin\">\r\n                <input\r\n                  class=\"devui-input devui-form-control\"\r\n                  [formControl]=\"control\"\r\n                  [attr.name]=\"data.controlname\" \r\n                  [placeholder]=\"data.placeholder\"\r\n                  autocomplete=\"off\"\r\n                  dTimePicker\r\n                  [(ngModel)]=\"data.defaultvalue\"\r\n                  (click)=\"timePicker.toggle()\"\r\n                  #timePicker=\"timePicker\"\r\n                  [format]=\"data.format\"\r\n                  [dValidateRules]=\"data.rules\"\r\n                />\r\n                <div *ngIf=\"data.defaultvalue\" class=\"devui-input-group-addon close-icon-wrapper\" (click)=\"timePicker.clearAll()\">\r\n                  <i class=\"icon icon-close\"></i>\r\n                </div>\r\n                <div class=\"devui-input-group-addon\" (click)=\"timePicker.toggle()\">\r\n                  <i class=\"icon fc-icon icon-time\"></i>\r\n                </div>\r\n              </div>\r\n          </d-form-control>\r\n        </d-form-item>\r\n  </ng-template>", styles: [".devui-input-group{width:260px}.devui-input-group-addon{cursor:pointer;vertical-align:middle}.devui-input-group-addon .icon{vertical-align:middle}.close-icon-wrapper{padding:0}\n"], components: [{ type: i2.FormBoxComponent, selector: "form-box", inputs: ["mainCarry", "name", "controltype", "additionalcss"], outputs: ["controlclick"] }, { type: i3.FormItemComponent, selector: "d-form-item", inputs: ["dFeedbackType", "dHasFeedback"] }, { type: i3.FormLabelComponent, selector: "d-form-label", inputs: ["required", "hasHelp", "helpTips"] }, { type: i3.FormControlComponent, selector: "d-form-control", inputs: ["extraInfo", "feedbackStatus", "suffixTemplate"] }, { type: i3.TimePickerComponent, selector: "[dTimePicker]", inputs: ["appendToBodyDirections", "disabled", "customViewTemplate", "autoOpen", "showAnimation", "minTime", "maxTime", "format", "timePickerWidth"], outputs: ["selectedTimeChange"], exportAs: ["timePicker"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i5.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.DFormControlRuleDirective, selector: "[dValidateRules][formControlName],[dValidateRules][ngModel],[dValidateRules][formControl]", inputs: ["dValidateRules", "dValidatePopConfig"], outputs: ["dRulesStatusChange"], exportAs: ["dValidateRules"] }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: FormTimeComponent, decorators: [{
            type: Component,
            args: [{ selector: 'form-time', template: "<ng-container *ngIf=\"data.mode=='op'; else detail\">\r\n    <form-box #box [mainCarry]=\"detail\" [name]=\"data.name\" [controltype]=\"data.controltype\" (controlclick)=\"onClick($event)\"></form-box>\r\n</ng-container>\r\n  <ng-template #detail>\r\n      <d-form-item>\r\n          <d-form-label [required]=\"data.required\" [hasHelp]=\"data.help\" [helpTips]=\"data.helptip||''\">{{data.label}}</d-form-label>\r\n          <d-form-control>\r\n            <div class=\"devui-input-group devui-dropdown-origin\">\r\n                <input\r\n                  class=\"devui-input devui-form-control\"\r\n                  [formControl]=\"control\"\r\n                  [attr.name]=\"data.controlname\" \r\n                  [placeholder]=\"data.placeholder\"\r\n                  autocomplete=\"off\"\r\n                  dTimePicker\r\n                  [(ngModel)]=\"data.defaultvalue\"\r\n                  (click)=\"timePicker.toggle()\"\r\n                  #timePicker=\"timePicker\"\r\n                  [format]=\"data.format\"\r\n                  [dValidateRules]=\"data.rules\"\r\n                />\r\n                <div *ngIf=\"data.defaultvalue\" class=\"devui-input-group-addon close-icon-wrapper\" (click)=\"timePicker.clearAll()\">\r\n                  <i class=\"icon icon-close\"></i>\r\n                </div>\r\n                <div class=\"devui-input-group-addon\" (click)=\"timePicker.toggle()\">\r\n                  <i class=\"icon fc-icon icon-time\"></i>\r\n                </div>\r\n              </div>\r\n          </d-form-control>\r\n        </d-form-item>\r\n  </ng-template>", styles: [".devui-input-group{width:260px}.devui-input-group-addon{cursor:pointer;vertical-align:middle}.devui-input-group-addon .icon{vertical-align:middle}.close-icon-wrapper{padding:0}\n"] }]
        }], ctorParameters: function () { return [{ type: i1.CommonService }]; } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS10aW1lLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Zvcm1idWlsZGVyL3NyYy9saWIvY29udHJvb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WJlbD5cclxuICAgICAgICAgIDxkLWZvcm0tY29udHJvbD5cclxuICAgICAgICAgICAgPGRpdiBjbGFzcz1cImRldnVpLWlucHV0LWdyb3VwIGRldnVpLWRyb3Bkb3duLW9yaWdpblwiPlxyXG4gICAgICAgICAgICAgICAgPGlucHV0XHJcbiAgICAgICAgICAgICAgICAgIGNsYXNzPVwiZGV2dWktaW5wdXQgZGV2dWktZm9ybS1jb250cm9sXCJcclxuICAgICAgICAgICAgICAgICAgW2Zvcm1Db250cm9sXT1cImNvbnRyb2xcIlxyXG4gICAgICAgICAgICAgICAgICBbYXR0ci5uYW1lXT1cImRhdGEuY29udHJvbG5hbWVcIiBcclxuICAgICAgICAgICAgICAgICAgW3BsYWNlaG9sZGVyXT1cImRhdGEucGxhY2Vob2xkZXJcIlxyXG4gICAgICAgICAgICAgICAgICBhdXRvY29tcGxldGU9XCJvZmZcIlxyXG4gICAgICAgICAgICAgICAgICBkVGltZVBpY2tlclxyXG4gICAgICAgICAgICAgICAgICBbKG5nTW9kZWwpXT1cImRhdGEuZGVmYXVsdHZhbHVlXCJcclxuICAgICAgICAgICAgICAgICAgKGNsaWNrKT1cInRpbWVQaWNrZXIudG9nZ2xlKClcIlxyXG4gICAgICAgICAgICAgICAgICAjdGltZVBpY2tlcj1cInRpbWVQaWNrZXJcIlxyXG4gICAgICAgICAgICAgICAgICBbZm9ybWF0XT1cImRhdGEuZm9ybWF0XCJcclxuICAgICAgICAgICAgICAgICAgW2RWYWxpZGF0ZVJ1bGVzXT1cImRhdGEucnVsZXNcIlxyXG4gICAgICAgICAgICAgICAgLz5cclxuICAgICAgICAgICAgICAgIDxkaXYgKm5nSWY9XCJkYXRhLmRlZmF1bHR2YWx1ZVwiIGNsYXNzPVwiZGV2dWktaW5wdXQtZ3JvdXAtYWRkb24gY2xvc2UtaWNvbi13cmFwcGVyXCIgKGNsaWNrKT1cInRpbWVQaWNrZXIuY2xlYXJBbGwoKVwiPlxyXG4gICAgICAgICAgICAgICAgICA8aSBjbGFzcz1cImljb24gaWNvbi1jbG9zZVwiPjwvaT5cclxuICAgICAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImRldnVpLWlucHV0LWdyb3VwLWFkZG9uXCIgKGNsaWNrKT1cInRpbWVQaWNrZXIudG9nZ2xlKClcIj5cclxuICAgICAgICAgICAgICAgICAgPGkgY2xhc3M9XCJpY29uIGZjLWljb24gaWNvbi10aW1lXCI+PC9pPlxyXG4gICAgICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICA8L2QtZm9ybS1jb250cm9sPlxyXG4gICAgICAgIDwvZC1mb3JtLWl0ZW0+XHJcbiAgPC9uZy10ZW1wbGF0ZT4iXX0=