/**
 * @fileoverview added by tsickle
 * Generated from: bcac-source-group.component.ts
 * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
import { Component, EventEmitter, Input, Output } from '@angular/core';
import * as _ from 'lodash';
/**
 * @record
 */
function sourceList() { }
if (false) {
    /** @type {?} */
    sourceList.prototype.sourceName;
    /** @type {?} */
    sourceList.prototype.defaultSelected;
    /** @type {?} */
    sourceList.prototype.optList;
}
export class BcacSourceGroupComponent {
    constructor() {
        this.bcacSelectedChange = new EventEmitter();
    }
    /**
     * @return {?}
     */
    ngOnInit() {
    }
    /**
     * @param {?} sourceList
     * @return {?}
     */
    set bcacSelectList(sourceList) {
        if (!_.isNil(sourceList)) {
            this.dataSourceList = sourceList;
        }
    }
    /**
     * @param {?} e
     * @param {?} sourceName
     * @return {?}
     */
    sourceChange(e, sourceName) {
        /** @type {?} */
        const 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 = () => [];
BcacSourceGroupComponent.propDecorators = {
    bcacSelectList: [{ type: Input }],
    bcacSelectedChange: [{ type: Output }]
};
if (false) {
    /** @type {?} */
    BcacSourceGroupComponent.prototype.dataSourceList;
    /** @type {?} */
    BcacSourceGroupComponent.prototype.bcacSelectedChange;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmNhYy1zb3VyY2UtZ3JvdXAuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vYmNhYy1saWIvYmFzZS1jb21wb25lbnQvY3VycmVuY3kvYmNhYy1zb3VyY2UtZ3JvdXAvIiwic291cmNlcyI6WyJiY2FjLXNvdXJjZS1ncm91cC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFlBQVksRUFBRSxLQUFLLEVBQVUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQy9FLE9BQU8sS0FBSyxDQUFDLE1BQU0sUUFBUSxDQUFDOzs7O0FBRzVCLHlCQUlDOzs7SUFIQyxnQ0FBbUI7O0lBQ25CLHFDQUFpQzs7SUFDakMsNkJBQXFEOztBQU92RCxNQUFNLE9BQU8sd0JBQXdCO0lBR25DO1FBY1UsdUJBQWtCLEdBQXNCLElBQUksWUFBWSxFQUFFLENBQUE7SUFkcEQsQ0FBQzs7OztJQUVqQixRQUFRO0lBQ1IsQ0FBQzs7Ozs7SUFJRCxJQUNJLGNBQWMsQ0FBQyxVQUFzQjtRQUN2QyxJQUFJLENBQUMsQ0FBQyxDQUFDLEtBQUssQ0FBQyxVQUFVLENBQUMsRUFBRTtZQUN4QixJQUFJLENBQUMsY0FBYyxHQUFHLFVBQVUsQ0FBQTtTQUNqQztJQUNILENBQUM7Ozs7OztJQUdELFlBQVksQ0FBQyxDQUFDLEVBQUMsVUFBVTs7Y0FDakIsS0FBSyxHQUFHO1lBQ1osVUFBVSxFQUFFLFVBQVU7WUFDdEIsYUFBYSxFQUFDLENBQUM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