import { Component, Input, ChangeDetectionStrategy } from '@angular/core';
import { EditCellDefault } from '../../../lib/edit-cell-default';
import * as i0 from "@angular/core";
import * as i1 from "../cell-editors/input-number-editor.component";
import * as i2 from "../cell-editors/select-editor.component";
import * as i3 from "../cell-editors/textarea-editor.component";
import * as i4 from "../cell-editors/checkbox-editor.component";
import * as i5 from "../cell-editors/lookup-editor.component";
import * as i6 from "../cell-editors/switch-editor.component";
import * as i7 from "../cell-editors/input-editor.component";
import * as i8 from "@angular/common";
export class DefaultEditComponent extends EditCellDefault {
    constructor() {
        super();
    }
}
DefaultEditComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DefaultEditComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
DefaultEditComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: DefaultEditComponent, selector: "table-cell-default-editor", inputs: { editingFormGroup: "editingFormGroup" }, usesInheritance: true, ngImport: i0, template: `
        <ng-container [ngSwitch]="getEditorType()">
            <input-number-editor
                *ngSwitchCase="'inputNumber'"
                [editingFormGroup]="editingFormGroup"
                [cell]="cell"
                (onClick)="onClick($event)"
                (onEdited)="onEdited($event)"
                (onStopEditing)="onStopEditing()">
            </input-number-editor>

            <select-editor
                *ngSwitchCase="'selector'"
                [editingFormGroup]="editingFormGroup"
                [cell]="cell"
                [updateColumnList]="updateColumnList"
                (selectedElem)="selectedElem.emit($event)"
                (onClick)="onClick($event)"
                (onEdited)="onEdited($event)"
                (onStopEditing)="onStopEditing()">
            </select-editor>

            <textarea-editor
                *ngSwitchCase="'textarea'"
                [editingFormGroup]="editingFormGroup"
                [cell]="cell"
                (onClick)="onClick($event)"
                (onEdited)="onEdited($event)"
                (onStopEditing)="onStopEditing()">
            </textarea-editor>

            <checkbox-editor
                *ngSwitchCase="'checkbox'"
                [editingFormGroup]="editingFormGroup"
                [cell]="cell"
                (onClick)="onClick($event)">
            </checkbox-editor>

            <lookup-editor
                *ngSwitchCase="'lookup'"
                [editingFormGroup]="editingFormGroup"
                [cell]="cell">
            </lookup-editor>

            <switch-editor
                *ngSwitchCase="'switch'"
                [editingFormGroup]="editingFormGroup"
                [cell]="cell">
            </switch-editor>

            <!-- If none match, at least a simple Input box is offered: -->
            <input-editor
                *ngSwitchDefault
                [editingFormGroup]="editingFormGroup"
                [cell]="cell"
                (onClick)="onClick($event)"
                (onEdited)="onEdited($event)"
                (onStopEditing)="onStopEditing()">
            </input-editor>
        </ng-container>
    `, isInline: true, components: [{ type: i1.InputNumberEditorComponent, selector: "input-number-editor" }, { type: i2.SelectEditorComponent, selector: "select-editor", outputs: ["selectedElem"] }, { type: i3.TextareaEditorComponent, selector: "textarea-editor" }, { type: i4.CheckboxEditorComponent, selector: "checkbox-editor" }, { type: i5.LookupEditorComponent, selector: "lookup-editor" }, { type: i6.SwitchEditorComponent, selector: "switch-editor" }, { type: i7.InputEditorComponent, selector: "input-editor" }], directives: [{ type: i8.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i8.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i8.NgSwitchDefault, selector: "[ngSwitchDefault]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DefaultEditComponent, decorators: [{
            type: Component,
            args: [{
                    selector: 'table-cell-default-editor',
                    template: `
        <ng-container [ngSwitch]="getEditorType()">
            <input-number-editor
                *ngSwitchCase="'inputNumber'"
                [editingFormGroup]="editingFormGroup"
                [cell]="cell"
                (onClick)="onClick($event)"
                (onEdited)="onEdited($event)"
                (onStopEditing)="onStopEditing()">
            </input-number-editor>

            <select-editor
                *ngSwitchCase="'selector'"
                [editingFormGroup]="editingFormGroup"
                [cell]="cell"
                [updateColumnList]="updateColumnList"
                (selectedElem)="selectedElem.emit($event)"
                (onClick)="onClick($event)"
                (onEdited)="onEdited($event)"
                (onStopEditing)="onStopEditing()">
            </select-editor>

            <textarea-editor
                *ngSwitchCase="'textarea'"
                [editingFormGroup]="editingFormGroup"
                [cell]="cell"
                (onClick)="onClick($event)"
                (onEdited)="onEdited($event)"
                (onStopEditing)="onStopEditing()">
            </textarea-editor>

            <checkbox-editor
                *ngSwitchCase="'checkbox'"
                [editingFormGroup]="editingFormGroup"
                [cell]="cell"
                (onClick)="onClick($event)">
            </checkbox-editor>

            <lookup-editor
                *ngSwitchCase="'lookup'"
                [editingFormGroup]="editingFormGroup"
                [cell]="cell">
            </lookup-editor>

            <switch-editor
                *ngSwitchCase="'switch'"
                [editingFormGroup]="editingFormGroup"
                [cell]="cell">
            </switch-editor>

            <!-- If none match, at least a simple Input box is offered: -->
            <input-editor
                *ngSwitchDefault
                [editingFormGroup]="editingFormGroup"
                [cell]="cell"
                (onClick)="onClick($event)"
                (onEdited)="onEdited($event)"
                (onStopEditing)="onStopEditing()">
            </input-editor>
        </ng-container>
    `,
                    changeDetection: ChangeDetectionStrategy.OnPush
                }]
        }], ctorParameters: function () { return []; }, propDecorators: { editingFormGroup: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64, 