import { Component, Input } from '@angular/core';
import { CANVASDEFAULT, MAINCONTAINER } from '../model/attributeInfo';
import * as i0 from "@angular/core";
import * as i1 from "../service/common.service";
import * as i2 from "../control/form-area/form-area.component";
import * as i3 from "@angular/forms";
import * as i4 from "ng-devui";
export class FormCanvasComponent {
    constructor(commonService) {
        this.commonService = commonService;
        this.canvasInfo = CANVASDEFAULT;
        this.containerName = MAINCONTAINER;
    }
    ngOnInit() {
        this.commonService.changeFormLayout.subscribe(o => {
            this.canvasInfo = o;
        });
    }
}
FormCanvasComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: FormCanvasComponent, deps: [{ token: i1.CommonService }], target: i0.ɵɵFactoryTarget.Component });
FormCanvasComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.6", type: FormCanvasComponent, selector: "form-canvas", inputs: { originalLayout: "originalLayout" }, ngImport: i0, template: "<div class=\"all-area\">\r\n    <form dForm [layout]=\"canvasInfo.layout\" [labelSize]=\"canvasInfo.labelSize\" [labelAlign]=\"canvasInfo.labelAlign\" style=\"flex:1\">\r\n        <form-area [name]=\"containerName\" [originalLayout]=\"originalLayout\"></form-area>\r\n    </form>\r\n</div>", styles: [".all-area{background:#ccc;height:100%;padding:5px;display:flex;flex-direction:column;overflow:auto}.all-area:-moz-drag-over{border:1px solid black}\n"], components: [{ type: i2.FormAreaComponent, selector: "form-area", inputs: ["name", "mode", "originalLayout"], outputs: ["onaddrow", "onremoverow"] }], directives: [{ type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i3.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i4.FormDirective, selector: "[dForm]", inputs: ["layout", "labelSize", "labelAlign", "dFeedbackType", "dHasFeedback"], outputs: ["dSubmit"], exportAs: ["dForm"] }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: FormCanvasComponent, decorators: [{
            type: Component,
            args: [{ selector: 'form-canvas', template: "<div class=\"all-area\">\r\n    <form dForm [layout]=\"canvasInfo.layout\" [labelSize]=\"canvasInfo.labelSize\" [labelAlign]=\"canvasInfo.labelAlign\" style=\"flex:1\">\r\n        <form-area [name]=\"containerName\" [originalLayout]=\"originalLayout\"></form-area>\r\n    </form>\r\n</div>", styles: [".all-area{background:#ccc;height:100%;padding:5px;display:flex;flex-direction:column;overflow:auto}.all-area:-moz-drag-over{border:1px solid black}\n"] }]
        }], ctorParameters: function () { return [{ type: i1.CommonService }]; }, propDecorators: { originalLayout: [{
                type: Input,
                args: ["originalLayout"]
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1jYW52YXMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZm9ybWJ1aWxkZXIvc3JjL2xpYi9mb3JtLWNhbnZhcy9mb3JtLWNhbnZhcy5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9mb3JtYnVpbGRlci9zcmMvbGliL2Zvcm0tY2FudmFzL2Zvcm0tY2FudmFzLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFVLE1BQU0sZUFBZSxDQUFDO0FBQ3pELE9BQU8sRUFBRSxhQUFhLEVBQWMsYUFBYSxFQUFDLE1BQU0sd0JBQXdCLENBQUM7Ozs7OztBQVVqRixNQUFNLE9BQU8sbUJBQW1CO0lBTzlCLFlBQ1UsYUFBMk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