/*!
 * KoliBri - The accessible HTML-Standard
 */
import { validateSuggestions, watchString } from "../../schema";
import { validateAutoComplete } from "../../schema/props/auto-complete";
import { InputIconController } from "../@deprecated/input/controller-icon";
export class InputColorController extends InputIconController {
    constructor(component, name, host) {
        super(component, name, host);
        this.component = component;
    }
    validateAutoComplete(value) {
        validateAutoComplete(this.component, value);
    }
    validateSuggestions(value) {
        validateSuggestions(this.component, value);
    }
    validateValue(value) {
        watchString(this.component, '_value', value);
        this.setFormAssociatedValue(this.component.state._value);
    }
    componentWillLoad() {
        super.componentWillLoad();
        this.validateAutoComplete(this.component._autoComplete);
        this.validateSuggestions(this.component._suggestions);
        this.validateValue(this.component._value);
    }
}
//# sourceMappingURL=controller.js.map
