import { Component, ContentChildren, EventEmitter, Input, Output, QueryList, ViewChildren } from "@angular/core"; import { FormGroup } from "@angular/forms"; import { DynamicFormComponent, DynamicFormControlEvent, DynamicFormModel, DynamicFormLayout, DynamicFormLayoutService, DynamicFormService, DynamicTemplateDirective, } from "@ng-dynamic-forms/core"; import { DynamicIonicFormControlContainerComponent } from "./dynamic-ionic-form-control-container.component"; @Component({ selector: "dynamic-ionic-form", templateUrl: "./dynamic-ionic-form.component.html" }) export class DynamicIonicFormComponent extends DynamicFormComponent { @Input("group") formGroup: FormGroup; @Input("model") formModel: DynamicFormModel; @Input("layout") formLayout: DynamicFormLayout; @Output() blur: EventEmitter = new EventEmitter(); @Output() change: EventEmitter = new EventEmitter(); @Output() focus: EventEmitter = new EventEmitter(); @Output("ionEvent") customEvent: EventEmitter = new EventEmitter(); @ContentChildren(DynamicTemplateDirective) templates: QueryList; @ViewChildren(DynamicIonicFormControlContainerComponent) components: QueryList; constructor(protected formService: DynamicFormService, protected layoutService: DynamicFormLayoutService) { super(formService, layoutService); } }