/*!
 * KoliBri - The accessible HTML-Standard
 */
import { validateSpellCheck, validateSuggestions, validateTypeInputText } from "../../schema";
import { InputPasswordController } from "../input-password/controller";
export class InputTextEmailController extends InputPasswordController {
    constructor(component, name, host) {
        super(component, name, host);
        this.component = component;
    }
    validateSuggestions(value) {
        validateSuggestions(this.component, value);
    }
    componentWillLoad() {
        super.componentWillLoad();
        this.validateSuggestions(this.component._suggestions);
    }
}
export class InputTextController extends InputTextEmailController {
    constructor(component, name, host) {
        super(component, name, host);
        this.hasError = false;
        this.component = component;
    }
    validateSpellCheck(value) {
        validateSpellCheck(this.component, value);
    }
    validateType(value) {
        validateTypeInputText(this.component, value);
    }
    componentWillLoad() {
        super.componentWillLoad();
        this.validateSpellCheck(this.component._spellCheck);
        this.validateType(this.component._type);
    }
}
//# sourceMappingURL=controller.js.map
