import { Component } from '@angular/core';
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";
export class FormDividerComponent extends BaseControl {
    constructor(commonService) {
        super(commonService);
        this.commonService = commonService;
    }
    ngOnInit() {
    }
}
FormDividerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: FormDividerComponent, deps: [{ token: i1.CommonService }], target: i0.ɵɵFactoryTarget.Component });
FormDividerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.6", type: FormDividerComponent, selector: "form-divider", 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 style=\"margin: 0px;\">\r\n          <d-form-control>\r\n            <div class=\"form-divider form-divider-horizontal\">\r\n                <div class=\"form-divider__text\" [ngClass]=\"data.align\">{{data.label}}</div>\r\n            </div>\r\n          </d-form-control>\r\n        </d-form-item>\r\n  </ng-template>", styles: [".form-divider{background-color:#dcdfe6;position:relative}.form-divider-horizontal{display:block;height:1px;width:100%;margin:24px 0}.form-divider__text{position:absolute;background-color:#fff;padding:0 20px;color:#303133}.form-divider__text.is-center{left:50%;transform:translate(-50%) translateY(-50%)}.form-divider__text.is-right{right:20px;transform:translateY(-50%)}.form-divider__text.is-left{left:20px;transform:translateY(-50%)}\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.FormControlComponent, selector: "d-form-control", inputs: ["extraInfo", "feedbackStatus", "suffixTemplate"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: FormDividerComponent, decorators: [{
            type: Component,
            args: [{ selector: 'form-divider', 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 style=\"margin: 0px;\">\r\n          <d-form-control>\r\n            <div class=\"form-divider form-divider-horizontal\">\r\n                <div class=\"form-divider__text\" [ngClass]=\"data.align\">{{data.label}}</div>\r\n            </div>\r\n          </d-form-control>\r\n        </d-form-item>\r\n  </ng-template>", styles: [".form-divider{background-color:#dcdfe6;position:relative}.form-divider-horizontal{display:block;height:1px;width:100%;margin:24px 0}.form-divider__text{position:absolute;background-color:#fff;padding:0 20px;color:#303133}.form-divider__text.is-center{left:50%;transform:translate(-50%) translateY(-50%)}.form-divider__text.is-right{right:20px;transform:translateY(-50%)}.form-divider__text.is-left{left:20px;transform:translateY(-50%)}\n"] }]
        }], ctorParameters: function () { return [{ type: i1.CommonService }]; } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1kaXZpZGVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Zvcm1idWlsZGVyL3NyYy9saWIvY29udHJvbC9mb3JtLWRpdmlkZXIvZm9ybS1kaXZpZGVyLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Zvcm1idWlsZGVyL3NyYy9saWIvY29udHJvbC9mb3JtLWRpdml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