import { EventEmitter, Component, Input, Output, NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { NzSelectModule } from 'ng-zorro-antd/select';
import { isNil } from 'lodash';
import { NzToolTipModule } from 'ng-zorro-antd';

/**
 * @fileoverview added by tsickle
 * Generated from: bcac-source-group.component.ts
 * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
/**
 * @record
 */
function sourceList() { }
if (false) {
    /** @type {?} */
    sourceList.prototype.sourceName;
    /** @type {?} */
    sourceList.prototype.defaultSelected;
    /** @type {?} */
    sourceList.prototype.optList;
}
var BcacSourceGroupComponent = /** @class */ (function () {
    function BcacSourceGroupComponent() {
        this.bcacSelectedChange = new EventEmitter();
    }
    /**
     * @return {?}
     */
    BcacSourceGroupComponent.prototype.ngOnInit = /**
     * @return {?}
     */
    function () {
    };
    Object.defineProperty(BcacSourceGroupComponent.prototype, "bcacSelectList", {
        set: /**
         * @param {?} sourceList
         * @return {?}
         */
        function (sourceList) {
            if (!isNil(sourceList)) {
                this.dataSourceList = sourceList;
            }
        },
        enumerable: true,
        configurable: true
    });
    /**
     * @param {?} e
     * @param {?} sourceName
     * @return {?}
     */
    BcacSourceGroupComponent.prototype.sourceChange = /**
     * @param {?} e
     * @param {?} sourceName
     * @return {?}
     */
    function (e, sourceName) {
        /** @type {?} */
        var param = {
            sourceName: sourceName,
            selectedValue: e
        };
        this.bcacSelectedChange.emit(param);
    };
    BcacSourceGroupComponent.decorators = [
        { type: Component, args: [{
                    selector: 'bcac-bcac-source-group',
                    template: "<ng-container *ngFor=\"let data of dataSourceList\">\r\n    <nz-select [(ngModel)]=\"data.defaultSelected\" class=\"select\"\r\n        (ngModelChange)=\"sourceChange($event,data.sourceName)\" nzSize=\"small\">\r\n        <nz-option *ngFor=\"let item of data.optList\" [nzLabel]=\"item.label\" [nzValue]=\"item.value\">\r\n        </nz-option>\r\n    </nz-select>\r\n    <div style=\"width: 0.4rem;display: inline-block;\"></div>\r\n</ng-container>",
                    styles: [":host ::ng-deep .ant-select-sm .ant-select-selection--single{width:7.5rem;height:1.8rem}:host ::ng-deep .ant-select-sm .ant-select-selection__rendered{line-height:1.6rem}nz-select:not(:first-child){margin-left:2px}nz-select{font-size:.8rem}.group{display:flex;align-items:center}"]
                }] }
    ];
    /** @nocollapse */
    BcacSourceGroupComponent.ctorParameters = function () { return []; };
    BcacSourceGroupComponent.propDecorators = {
        bcacSelectList: [{ type: Input }],
        bcacSelectedChange: [{ type: Output }]
    };
    return BcacSourceGroupComponent;
}());
if (false) {
    /** @type {?} */
    BcacSourceGroupComponent.prototype.dataSourceList;
    /** @type {?} */
    BcacSourceGroupComponent.prototype.bcacSelectedChange;
}

/**
 * @fileoverview added by tsickle
 * Generated from: bcac-source-group.module.ts
 * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
var BcacSourceGroupModule = /** @class */ (function () {
    function BcacSourceGroupModule() {
    }
    BcacSourceGroupModule.decorators = [
        { type: NgModule, args: [{
                    declarations: [BcacSourceGroupComponent],
                    imports: [
                        CommonModule,
                        NzSelectModule,
                        FormsModule,
                        NzToolTipModule
                    ],
                    exports: [BcacSourceGroupComponent]
                },] }
    ];
    return BcacSourceGroupModule;
}());

/**
 * @fileoverview added by tsickle
 * Generated from: public-api.ts
 * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */

/**
 * @fileoverview added by tsickle
 * Generated from: bcac-lib-base-component-currency-bcac-source-group.ts
 * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */

export { BcacSourceGroupComponent, BcacSourceGroupModule };
//# sourceMappingURL=bcac-lib-base-component-currency-bcac-source-group.js.map
