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\">\n  <div class=\"dynamicForm\" *ngIf=\"isTable\">\n    <div *ngFor=\"let question of questions\" class=\"form-row\">\n        <app-question-from-table \n            [form]=\"form\" \n            [isMovilView]=\"gridMobile\"\n            [question]=\"question\"\n            [group]=\"group\"\n            [index]=\"index\"\n            [requerido]=\"question.required\" \n            (onFile)=\"saveFile($event)\" \n            (onChangeRadio)=\"onChangeRadio($event)\" \n            (onDeleteFile)=\"deleteFile($event)\" \n            (onAddNewTable)=\"onAddNewTable($event)\"\n            (onAddTableWithData)=\"onAddTableWithData($event)\"\n        >\n        </app-question-from-table>\n    </div>\n  </div>\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\">\n  <div class=\"dynamicForm\" *ngIf=\"isTable\">\n    <div *ngFor=\"let question of questions\" class=\"form-row\">\n        <app-question-from-table \n            [form]=\"form\" \n            [isMovilView]=\"gridMobile\"\n            [question]=\"question\"\n            [group]=\"group\"\n            [index]=\"index\"\n            [requerido]=\"question.required\" \n            (onFile)=\"saveFile($event)\" \n            (onChangeRadio)=\"onChangeRadio($event)\" \n            (onDeleteFile)=\"deleteFile($event)\" \n            (onAddNewTable)=\"onAddNewTable($event)\"\n            (onAddTableWithData)=\"onAddTableWithData($event)\"\n        >\n        </app-question-from-table>\n    </div>\n  </div>\n</ng-container>", styles: [""] }]
        }], ctorParameters: function () { return [{ type: i1.QuestionControlService }]; } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHluYW1pYy1mb3JtLWZyb20tdGFibGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdWkvc3JjL2xpYi91aS9keW5hbWljLWZvcm0tZnJvbS10YWJsZS9keW5hbWljLWZvcm0tZnJvbS10YWJsZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy91aS9zcmMvbGliL3VpL2R5bmFtaWMtZm9ybS1mcm9tLXRhYmxlL2R5bmFtaWMtZm9ybS1mcm9tLXRhYmxlLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDMUMsT0FBTyxFQUFFLHNCQUFzQixFQUFFLE1BQU0sOERBQThELENBQUM7QUFDdEcsT0FBTyxFQUFFLGlDQ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