import { Component } from '@angular/core';
import { QuestionControlService } from '../../common/core/question/services/question-control.service';
import { QuestionCreationAbstractDirective } from '../definitions/dynamic-form';
import * as i0 from "@angular/core";
import * as i1 from "../../common/core/question/services/question-control.service";
import * as i2 from "../dynamic-form-question/dynamic-form-question-from-table/dynamic-form-question-from-table.component";
import * as i3 from "@angular/common";
export class DynamicFormFromTableComponent extends QuestionCreationAbstractDirective {
    constructor(qcs) {
        super(qcs);
        this.qcs = qcs;
    }
}
DynamicFormFromTableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DynamicFormFromTableComponent, deps: [{ token: i1.QuestionControlService }], target: i0.ɵɵFactoryTarget.Component });
DynamicFormFromTableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.3", type: DynamicFormFromTableComponent, selector: "app-dynamic-form-from-table", usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"questions\">\r\n  <div class=\"dynamicForm\" *ngIf=\"isTable\">\r\n    <div *ngFor=\"let question of questions\" class=\"form-row\">\r\n        <app-question-from-table \r\n            [form]=\"form\" \r\n            [isMovilView]=\"gridMobile\"\r\n            [question]=\"question\"\r\n            [group]=\"group\"\r\n            [index]=\"index\"\r\n            [requerido]=\"question.required\" \r\n            (onFile)=\"saveFile($event)\" \r\n            (onChangeRadio)=\"onChangeRadio($event)\" \r\n            (onDeleteFile)=\"deleteFile($event)\" \r\n            (onAddNewTable)=\"onAddNewTable($event)\"\r\n            (onAddTableWithData)=\"onAddTableWithData($event)\"\r\n        >\r\n        </app-question-from-table>\r\n    </div>\r\n  </div>\r\n</ng-container>", styles: [""], components: [{ type: i2.DynamicFormQuestionFromTableComponent, selector: "app-question-from-table" }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: DynamicFormFromTableComponent, decorators: [{
            type: Component,
            args: [{ selector: 'app-dynamic-form-from-table', template: "<ng-container *ngIf=\"questions\">\r\n  <div class=\"dynamicForm\" *ngIf=\"isTable\">\r\n    <div *ngFor=\"let question of questions\" class=\"form-row\">\r\n        <app-question-from-table \r\n            [form]=\"form\" \r\n            [isMovilView]=\"gridMobile\"\r\n            [question]=\"question\"\r\n            [group]=\"group\"\r\n            [index]=\"index\"\r\n            [requerido]=\"question.required\" \r\n            (onFile)=\"saveFile($event)\" \r\n            (onChangeRadio)=\"onChangeRadio($event)\" \r\n            (onDeleteFile)=\"deleteFile($event)\" \r\n            (onAddNewTable)=\"onAddNewTable($event)\"\r\n            (onAddTableWithData)=\"onAddTableWithData($event)\"\r\n        >\r\n        </app-question-from-table>\r\n    </div>\r\n  </div>\r\n</ng-container>", styles: [""] }]
        }], ctorParameters: function () { return [{ type: i1.QuestionControlService }]; } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHluYW1pYy1mb3JtLWZyb20tdGFibGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdWkvc3JjL2xpYi91aS9keW5hbWljLWZvcm0tZnJvbS10YWJsZS9keW5hbWljLWZvcm0tZnJvbS10YWJsZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy91aS9zcmMvbGliL3VpL2R5bmFtaWMtZm9ybS1mcm9tLXRhYmxlL2R5bmFtaWMtZm9ybS1mcm9tLXRhYmxlLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFD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