/**
 * @fileoverview added by tsickle
 * @suppress {checkTypes} checked by tsc
 */
import { Component, Input, HostBinding } from '@angular/core';
var ButtonComponent = /** @class */ (function () {
    function ButtonComponent() {
        this.type = 'button';
        this.loading = false;
    }
    Object.defineProperty(ButtonComponent.prototype, "disabled", {
        get: /**
         * @return {?}
         */
        function () {
            var /** @type {?} */ isDisabled = (/** @type {?} */ (this)).hasOwnProperty('_disabled');
            return isDisabled && this._disabled !== false;
        },
        set: /**
         * @param {?} isDisabled
         * @return {?}
         */
        function (isDisabled) {
            this._disabled = isDisabled;
        },
        enumerable: true,
        configurable: true
    });
    ButtonComponent.decorators = [
        { type: Component, args: [{
                    selector: 'ui-button',
                    template: "<div class=\"ui-button-text\">\n  <ng-content></ng-content>\n</div>\n<div class=\"ui-button-loading\"><span class=\"ui-icon ui-icon-spinner6\"></span></div>\n<button class=\"ui-button\" [type]=\"type\" [disabled]=\"disabled\">\n</button>\n"
                },] },
    ];
    /** @nocollapse */
    ButtonComponent.propDecorators = {
        "type": [{ type: Input },],
        "loading": [{ type: Input }, { type: HostBinding, args: ['class.ui-loading',] },],
        "disabled": [{ type: Input }, { type: HostBinding, args: ['class.ui-disabled',] },],
    };
    return ButtonComponent;
}());
export { ButtonComponent };
function ButtonComponent_tsickle_Closure_declarations() {
    /** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
    ButtonComponent.decorators;
    /**
     * @nocollapse
     * @type {function(): !Array<(null|{type: ?, decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>)})>}
     */
    ButtonComponent.ctorParameters;
    /** @type {!Object<string,!Array<{type: !Function, args: (undefined|!Array<?>)}>>} */
    ButtonComponent.propDecorators;
    /** @type {?} */
    ButtonComponent.prototype.type;
    /** @type {?} */
    ButtonComponent.prototype.loading;
    /** @type {?} */
    ButtonComponent.prototype._disabled;
}

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLmNvbXBvbmVudC5qc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