/**
 * @fileoverview added by tsickle
 * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
 */
import { Directive, ElementRef, HostBinding, Input } from '@angular/core';
var AtInputDirective = /** @class */ (function () {
    function AtInputDirective(el) {
        this.el = el;
        this.onChange = Function.prototype;
        this.onTouched = Function.prototype;
        this._atStatus = "original";
        this._disabled = false;
        this._atSize = 'normal';
    }
    Object.defineProperty(AtInputDirective.prototype, "setLgClass", {
        get: /**
         * @return {?}
         */
        function () {
            return this._atSize === 'large';
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(AtInputDirective.prototype, "setSmClass", {
        get: /**
         * @return {?}
         */
        function () {
            return this._atSize === 'small';
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(AtInputDirective.prototype, "setOriginalClass", {
        get: /**
         * @return {?}
         */
        function () {
            return true;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(AtInputDirective.prototype, "atStatus", {
        get: /**
         * @return {?}
         */
        function () {
            return this._atStatus;
        },
        set: /**
         * @param {?} value
         * @return {?}
         */
        function (value) {
            this._atStatus = value;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(AtInputDirective.prototype, "disabled", {
        get: /**
         * @return {?}
         */
        function () {
            return this._disabled;
        },
        set: /**
         * @param {?} value
         * @return {?}
         */
        function (value) {
            this._disabled = value;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(AtInputDirective.prototype, "atSize", {
        get: /**
         * @return {?}
         */
        function () {
            return this._atSize;
        },
        set: /**
         * @param {?} value
         * @return {?}
         */
        function (value) {
            this._atSize = value;
        },
        enumerable: true,
        configurable: true
    });
    AtInputDirective.decorators = [
        { type: Directive, args: [{
                    selector: '[at-input]',
                },] }
    ];
    /** @nocollapse */
    AtInputDirective.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    AtInputDirective.propDecorators = {
        setLgClass: [{ type: HostBinding, args: ["class.at-input--lg",] }],
        setSmClass: [{ type: HostBinding, args: ["class.at-input--sm",] }],
        setOriginalClass: [{ type: HostBinding, args: ["class.at-input__original",] }],
        atSize: [{ type: Input }]
    };
    return AtInputDirective;
}());
export { AtInputDirective };
if (false) {
    /** @type {?} */
    AtInputDirective.prototype.onChange;
    /** @type {?} */
    AtInputDirective.prototype.onTouched;
    /** @type {?} */
    AtInputDirective.prototype._atStatus;
    /** @type {?} */
    AtInputDirective.prototype._disabled;
    /** @type {?} */
    AtInputDirective.prototype._atSize;
    /** @type {?} */
    AtInputDirective.prototype.el;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXQtaW5wdXQuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vYXQtbmcvIiwic291cmNlcyI6WyJpbnB1dC9hdC1pbnB1dC5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBQyxTQUFTLEVBQUUsVUFBVSxFQUFjLFdBQVcsRUFBRSxLQUFLLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFJcEY7SUFLRSwwQkFBbUIsRUFBYztRQUFkLE9BQUUsR0FBRixFQUFFLENBQVk7UUFJakMsYUFBUSxHQUFTLFFBQVEsQ0FBQyxTQUFTLENBQUM7UUFDcEMsY0FBUyxHQUFRLFFBQVEsQ0FBQyxTQUFTLENBQUM7UUFtQjVCLGNBQVMsR0FBRyxVQUFVLENBQUE7UUFDdEIsY0FBUyxHQUFHLEtBQUssQ0FBQTtRQUVqQixZQUFPLEdBQWdCLFFBQVEsQ0FBQTtJQTFCdkMsQ0FBQztJQU9ELHNCQUNJLHdDQUFVOzs7O1FBRGQ7WUFFRSxPQUFPLElBQUksQ0FBQyxPQUFPLEtBQUssT0FBTyxDQUFDO1FBQ2xDLENBQUM7OztPQUFBO0lBRUQsc0JBQ0ksd0NBQVU7Ozs7UUFEZDtZQUVFLE9BQU8sSUFBSSxDQUFDLE9BQU8sS0FBSyxPQUFPLENBQUM7UU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