/**
 * @fileoverview added by tsickle
 * Generated from: base-component/currency/bcac-icon/bcac-brush-icon/bcac-brush-icon.component.ts
 * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
import { Component, EventEmitter, Input, Output } from '@angular/core';
var BcacBrushIconComponent = /** @class */ (function () {
    function BcacBrushIconComponent() {
        this.darkModeTextColor = '#EEE';
        this.defaultColor = '#323232';
        this.activeColor = '#1890ff';
        this._bcacIsDarkMode = false;
        this._brushIconColor = this.defaultColor;
        this._clearIconColor = this.defaultColor;
        this._brushEnlargeIconColor = this.defaultColor;
        this._clearRestoreIconColor = this.defaultColor;
        this._brushCalculateIconColor = this.defaultColor;
        this.iconType = "brush";
        this.tooltipTitle = "";
        this.isClear = false; //清除还原状态
        //清除还原状态
        this.isActive = false; //点击状态
        this.bcacBrushEmit = new EventEmitter();
    }
    Object.defineProperty(BcacBrushIconComponent.prototype, "bcacIconType", {
        set: /**
         * @param {?} value
         * @return {?}
         */
        function (value) {
            this.iconType = value;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(BcacBrushIconComponent.prototype, "bcacTooltipTitle", {
        set: /**
         * @param {?} value
         * @return {?}
         */
        function (value) {
            this.tooltipTitle = value;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(BcacBrushIconComponent.prototype, "bcacIsDarkMode", {
        set: /**
         * @param {?} value
         * @return {?}
         */
        function (value) {
            this._bcacIsDarkMode = value;
            this.switchColor();
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(BcacBrushIconComponent.prototype, "bcacBrushClearActive", {
        set: 
        //点击状态
        /**
         * @param {?} value
         * @return {?}
         */
        function (value) {
            this.isClear = value;
            this.switchColor();
        },
        enumerable: true,
        configurable: true
    });
    //todo 切换颜色
    //todo 切换颜色
    /**
     * @return {?}
     */
    BcacBrushIconComponent.prototype.switchColor = 
    //todo 切换颜色
    /**
     * @return {?}
     */
    function () {
        this._brushIconColor = this.isActive
            ? this.activeColor
            : (this._bcacIsDarkMode
                ? this.darkModeTextColor
                : this.defaultColor);
        this._clearIconColor = this.isClear
            ? this.activeColor
            : (this._bcacIsDarkMode
                ? this.darkModeTextColor
                : this.defaultColor);
        this._brushEnlargeIconColor = this._bcacIsDarkMode
            ? this.darkModeTextColor
            : this.defaultColor;
        this._clearRestoreIconColor = this._bcacIsDarkMode
            ? this.darkModeTextColor
            : this.defaultColor;
        this._brushCalculateIconColor = this._bcacIsDarkMode
            ? this.darkModeTextColor
            : this.defaultColor;
    };
    /**
     * @return {?}
     */
    BcacBrushIconComponent.prototype.clickIcon = /**
     * @return {?}
     */
    function () {
        this.isActive = !this.isActive;
        this.switchColor();
        /** @type {?} */
        var param = {
            type: this.iconType,
            active: this.isActive
        };
        this.bcacBrushEmit.emit(param);
    };
    /**
     * @return {?}
     */
    BcacBrushIconComponent.prototype.ngOnInit = /**
     * @return {?}
     */
    function () {
    };
    BcacBrushIconComponent.decorators = [
        { type: Component, args: [{
                    selector: 'bcac-brush-icon',
                    template: "<div style=\"width: 20px;text-align: center;\" (click)=\"clickIcon()\">\r\n    <ng-container  *ngIf=\"iconType == 'spec' \">\r\n        <bcac-icon\r\n            class=\"singleSelectIcon\"\r\n            [iconColor]=\"_brushIconColor\"\r\n            [iconType]=\"iconType\"\r\n            [tooltipTitle]=\"tooltipTitle\"\r\n        >\r\n    </bcac-icon>\r\n    </ng-container>\r\n    <ng-container *ngIf=\"iconType == 'brush' \">\r\n        <bcac-icon\r\n            class=\"singleSelectIcon\"\r\n            [iconColor]=\"_brushIconColor\"\r\n            [iconType]=\"iconType\"\r\n            [tooltipTitle]=\"tooltipTitle\"\r\n        >\r\n        </bcac-icon>\r\n    </ng-container>\r\n    <ng-container *ngIf=\"iconType == 'brush_clear' \">\r\n        <bcac-icon\r\n            class=\"singleSelectIcon\"\r\n            [iconColor]=\"_clearIconColor\"\r\n            [iconType]=\"iconType\"\r\n            [tooltipTitle]=\"tooltipTitle\"\r\n        >\r\n        </bcac-icon>\r\n    </ng-container>\r\n    <ng-container *ngIf=\"iconType == 'brush_enlarge' \">\r\n        <bcac-icon\r\n            class=\"singleSelectIcon\"\r\n            [iconColor]=\"_brushEnlargeIconColor\"\r\n            [iconType]=\"iconType\"\r\n            [tooltipTitle]=\"tooltipTitle\"\r\n        >\r\n        </bcac-icon>\r\n    </ng-container>\r\n    <ng-container *ngIf=\"iconType == 'brush_restore' \">\r\n        <bcac-icon\r\n            class=\"singleSelectIcon\"\r\n            [iconColor]=\"_clearRestoreIconColor\"\r\n            [iconType]=\"iconType\"\r\n            [tooltipTitle]=\"tooltipTitle\"\r\n        >\r\n        </bcac-icon>\r\n    </ng-container>\r\n    <ng-container *ngIf=\"iconType == 'calculate' \">\r\n        <bcac-icon\r\n            class=\"singleSelectIcon\"\r\n            [iconColor]=\"_brushCalculateIconColor\"\r\n            [iconType]=\"iconType\"\r\n            [tooltipTitle]=\"tooltipTitle\"\r\n        >\r\n        </bcac-icon>\r\n    </ng-container>\r\n</div>",
                    styles: [".singleSelectIcon{font-size:1.6rem;line-height:1}"]
                }] }
    ];
    /** @nocollapse */
    BcacBrushIconComponent.ctorParameters = function () { return []; };
    BcacBrushIconComponent.propDecorators = {
        bcacIconType: [{ type: Input }],
        bcacTooltipTitle: [{ type: Input }],
        bcacIsDarkMode: [{ type: Input }],
        bcacBrushClearActive: [{ type: Input }],
        bcacBrushEmit: [{ type: Output }]
    };
    return BcacBrushIconComponent;
}());
export { BcacBrushIconComponent };
if (false) {
    /** @type {?} */
    BcacBrushIconComponent.prototype.darkModeTextColor;
    /** @type {?} */
    BcacBrushIconComponent.prototype.defaultColor;
    /** @type {?} */
    BcacBrushIconComponent.prototype.activeColor;
    /** @type {?} */
    BcacBrushIconComponent.prototype._bcacIsDarkMode;
    /** @type {?} */
    BcacBrushIconComponent.prototype._brushIconColor;
    /** @type {?} */
    BcacBrushIconComponent.prototype._clearIconColor;
    /** @type {?} */
    BcacBrushIconComponent.prototype._brushEnlargeIconColor;
    /** @type {?} */
    BcacBrushIconComponent.prototype._clearRestoreIconColor;
    /** @type {?} */
    BcacBrushIconComponent.prototype._brushCalculateIconColor;
    /** @type {?} */
    BcacBrushIconComponent.prototype.iconType;
    /** @type {?} */
    BcacBrushIconComponent.prototype.tooltipTitle;
    /** @type {?} */
    BcacBrushIconComponent.prototype.isClear;
    /** @type {?} */
    BcacBrushIconComponent.prototype.isActive;
    /** @type {?} */
    BcacBrushIconComponent.prototype.bcacBrushEmit;
}
//# sourceMappingURL=data:application/json;base64, 