/**
 * @fileoverview added by tsickle
 * Generated from: base-component/currency/bcac-icon/bcac-single-select-icon/bcac-single-select-icon.component.ts
 * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
import { Component, EventEmitter, Input, Output } from '@angular/core';
var BcacSingleSelectIconComponent = /** @class */ (function () {
    function BcacSingleSelectIconComponent() {
        this.visible = false;
        this.iconType = "axis-scale";
        this.tooltipTitle = "刻度";
        this.dropMenuPanelWidth = "10rem";
        this.selectValue = [];
        this.bcacSelectedEmit = new EventEmitter();
    }
    /**
     * @return {?}
     */
    BcacSingleSelectIconComponent.prototype.ngOnInit = /**
     * @return {?}
     */
    function () {
    };
    /**
     * @return {?}
     */
    BcacSingleSelectIconComponent.prototype.closeDropDownMenu = /**
     * @return {?}
     */
    function () {
        this.visible = false;
    };
    Object.defineProperty(BcacSingleSelectIconComponent.prototype, "bcacIconType", {
        set: /**
         * @param {?} value
         * @return {?}
         */
        function (value) {
            this.iconType = value;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(BcacSingleSelectIconComponent.prototype, "bcacTooltipTitle", {
        set: /**
         * @param {?} value
         * @return {?}
         */
        function (value) {
            this.tooltipTitle = value;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(BcacSingleSelectIconComponent.prototype, "bcacDropMenuPanelWidth", {
        set: /**
         * @param {?} value
         * @return {?}
         */
        function (value) {
            this.dropMenuPanelWidth = value;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(BcacSingleSelectIconComponent.prototype, "bcacSelectData", {
        set: /**
         * @param {?} value
         * @return {?}
         */
        function (value) {
            this.selectValue = value;
            this.radioValue = this.selectValue.length > 0 ? this.selectValue[0].value : null;
            this.bcacSelectedEmit.emit(this.radioValue);
        },
        enumerable: true,
        configurable: true
    });
    /**
     * @param {?} item
     * @return {?}
     */
    BcacSingleSelectIconComponent.prototype.clickRadio = /**
     * @param {?} item
     * @return {?}
     */
    function (item) {
        this.bcacSelectedEmit.emit(item);
    };
    /**
     * @return {?}
     */
    BcacSingleSelectIconComponent.prototype.selectedChange = /**
     * @return {?}
     */
    function () {
        this.bcacSelectedEmit.emit(this.radioValue);
    };
    BcacSingleSelectIconComponent.decorators = [
        { type: Component, args: [{
                    selector: 'bcac-single-select-icon',
                    template: "<div style=\"width: 20px;\"\r\nnz-dropdown\r\n[(nzVisible)]=\"visible\"\r\nnzTrigger=\"click\" \r\n[nzDropdownMenu]=\"singleSelectControl\"\r\nnzPlacement=\"bottomRight\">\r\n    <bcac-icon\r\n    class=\"singleSelectIcon\"\r\n    [iconType]=\"iconType\" \r\n    [tooltipTitle]=\"tooltipTitle\">\r\n    </bcac-icon>\r\n</div>\r\n<nz-dropdown-menu #singleSelectControl=\"nzDropdownMenu\" style=\"width: 50%;z-index: 100;\">\r\n    <div class=\"dropMenuPanel\" [style.width]=\"dropMenuPanelWidth\" (mouseleave)=\"closeDropDownMenu()\">\r\n        <label>\u9009\u62E9{{tooltipTitle}}</label>\r\n        <nz-divider style=\"margin: 0.2rem\"></nz-divider>\r\n        <nz-radio-group [(ngModel)]=\"radioValue\" (ngModelChange)=\"selectedChange()\">\r\n            <label *ngFor=\"let item of selectValue\"\r\n            nz-radio \r\n            class=\"radio\"\r\n            [nzValue]=\"item.value\">\r\n            {{item.label}}\r\n            </label>\r\n        </nz-radio-group>\r\n    </div>\r\n</nz-dropdown-menu>\r\n\r\n",
                    styles: [".singleSelectIcon{font-size:1.6rem;line-height:1}.dropMenuPanel{padding:1rem;background-color:#fff;border:.1rem solid #aaa4a4;box-shadow:.2rem .2rem 1rem #888;margin-top:-.3rem;font-size:1.2rem}"]
                }] }
    ];
    /** @nocollapse */
    BcacSingleSelectIconComponent.ctorParameters = function () { return []; };
    BcacSingleSelectIconComponent.propDecorators = {
        bcacIconType: [{ type: Input }],
        bcacTooltipTitle: [{ type: Input }],
        bcacDropMenuPanelWidth: [{ type: Input }],
        bcacSelectData: [{ type: Input }],
        bcacSelectedEmit: [{ type: Output }]
    };
    return BcacSingleSelectIconComponent;
}());
export { BcacSingleSelectIconComponent };
if (false) {
    /** @type {?} */
    BcacSingleSelectIconComponent.prototype.visible;
    /** @type {?} */
    BcacSingleSelectIconComponent.prototype.iconType;
    /** @type {?} */
    BcacSingleSelectIconComponent.prototype.tooltipTitle;
    /** @type {?} */
    BcacSingleSelectIconComponent.prototype.dropMenuPanelWidth;
    /** @type {?} */
    BcacSingleSelectIconComponent.prototype.selectValue;
    /** @type {?} */
    BcacSingleSelectIconComponent.prototype.bcacSelectedEmit;
    /** @type {?} */
    BcacSingleSelectIconComponent.prototype.radioValue;
}
//# sourceMappingURL=data:application/json;base64, 