/**
 * @fileoverview added by tsickle
 * @suppress {checkTypes,extraRequire,missingReturn,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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXQtaW5wdXQuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vYXQtbmcvIiwic291cmNlcyI6WyJpbnB1dC9hdC1pbnB1dC5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBYyxTQUFTLEVBQUUsVUFBVSxFQUFFLFdBQVcsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFHdEY7SUFLRSwwQkFBbUIsRUFBYztRQUFkLE9BQUUsR0FBRixFQUFFLENBQVk7UUFHakMsYUFBUSxHQUFTLFFBQVEsQ0FBQyxTQUFTLENBQUM7UUFDcEMsY0FBUyxHQUFRLFFBQVEsQ0FBQyxTQUFTLENBQUM7UUFpQjVCLGNBQVMsR0FBRyxVQUFVLENBQUM7UUFDdkIsY0FBUyxHQUFHLEtBQUssQ0FBQztRQUVsQixZQUFPLEdBQWdCLFFBQVEsQ0FBQztJQXZCeEMsQ0FBQztJQUtELHNCQUNJLHdDQUFVOzs7O1FBRGQ7WUFFRSxPQUFPLElBQUksQ0FBQyxPQUFPLEtBQUssT0FBTyxDQUFDO1FBQ2xDLENBQUM7OztPQUFBO0lBRUQsc0JBQ0ksd0NBQVU7Ozs7UUFEZDtZQUVFLE9BQU8sSUFBSSxDQUFDLE9BQU8sS0FBSyxPQUFPLENBQU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