/**
 * @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;
}
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;
}());
export { BcacSourceGroupComponent };
if (false) {
    /** @type {?} */
    BcacSourceGroupComponent.prototype.dataSourceList;
    /** @type {?} */
    BcacSourceGroupComponent.prototype.bcacSelectedChange;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmNhYy1zb3VyY2UtZ3JvdXAuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vYmNhYy1saWIvYmFzZS1jb21wb25lbnQvY3VycmVuY3kvYmNhYy1zb3VyY2UtZ3JvdXAvIiwic291cmNlcyI6WyJiY2FjLXNvdXJjZS1ncm91cC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFlBQVksRUFBRSxLQUFLLEVBQVUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQy9FLE9BQU8sS0FBSyxDQUFDLE1BQU0sUUFBUSxDQUFDOzs7O0FBRzVCLHlCQUlDOzs7SUFIQyxnQ0FBbUI7O0lBQ25CLHFDQUFpQzs7SUFDakMsNkJBQXFEOztBQUV2RDtJQVFFO1FBY1UsdUJBQWtCLEdBQXNCLElBQUksWUFBWSxFQUFFLENBQUE7SUFkcEQsQ0FBQzs7OztJQUVqQiwyQ0FBUTs7O0lBQVI7SUFDQSxDQUFDO0lBSUQsc0JBQ0ksb0RBQWM7Ozs7O1FBRGxCLFVBQ21CLFVBQXNCO1lBQ3ZDLElBQUksQ0FBQyxDQUFDLENBQUMsS0FBSyxDQUFD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