/**
 * @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';
export class BcacSingleSelectIconComponent {
    constructor() {
        this.visible = false;
        this.iconType = "axis-scale";
        this.tooltipTitle = "刻度";
        this.dropMenuPanelWidth = "10rem";
        this.selectValue = [];
        this.bcacSelectedEmit = new EventEmitter();
    }
    /**
     * @return {?}
     */
    ngOnInit() {
    }
    /**
     * @return {?}
     */
    closeDropDownMenu() {
        this.visible = false;
    }
    /**
     * @param {?} value
     * @return {?}
     */
    set bcacIconType(value) {
        this.iconType = value;
    }
    /**
     * @param {?} value
     * @return {?}
     */
    set bcacTooltipTitle(value) {
        this.tooltipTitle = value;
    }
    /**
     * @param {?} value
     * @return {?}
     */
    set bcacDropMenuPanelWidth(value) {
        this.dropMenuPanelWidth = value;
    }
    /**
     * @param {?} value
     * @return {?}
     */
    set bcacSelectData(value) {
        this.selectValue = value;
        this.radioValue = this.selectValue.length > 0 ? this.selectValue[0].value : null;
        this.bcacSelectedEmit.emit(this.radioValue);
    }
    /**
     * @param {?} item
     * @return {?}
     */
    clickRadio(item) {
        this.bcacSelectedEmit.emit(item);
    }
    /**
     * @return {?}
     */
    selectedChange() {
        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 = () => [];
BcacSingleSelectIconComponent.propDecorators = {
    bcacIconType: [{ type: Input }],
    bcacTooltipTitle: [{ type: Input }],
    bcacDropMenuPanelWidth: [{ type: Input }],
    bcacSelectData: [{ type: Input }],
    bcacSelectedEmit: [{ type: Output }]
};
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmNhYy1zaW5nbGUtc2VsZWN0LWljb24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI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