(function (global, factory) {
    typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('ng-zorro-antd/select'), require('lodash'), require('ng-zorro-antd')) :
    typeof define === 'function' && define.amd ? define('bcac-lib/base-component/currency/bcac-source-group', ['exports', '@angular/core', '@angular/common', '@angular/forms', 'ng-zorro-antd/select', 'lodash', 'ng-zorro-antd'], factory) :
    (global = global || self, factory((global['bcac-lib'] = global['bcac-lib'] || {}, global['bcac-lib']['base-component'] = global['bcac-lib']['base-component'] || {}, global['bcac-lib']['base-component'].currency = global['bcac-lib']['base-component'].currency || {}, global['bcac-lib']['base-component'].currency['bcac-source-group'] = {}), global.ng.core, global.ng.common, global.ng.forms, global.select, global.lodash, global.ngZorroAntd));
}(this, (function (exports, core, common, forms, select, lodash, ngZorroAntd) { 'use strict';

    /**
     * @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 core.EventEmitter();
        }
        /**
         * @return {?}
         */
        BcacSourceGroupComponent.prototype.ngOnInit = /**
         * @return {?}
         */
        function () {
        };
        Object.defineProperty(BcacSourceGroupComponent.prototype, "bcacSelectList", {
            set: /**
             * @param {?} sourceList
             * @return {?}
             */
            function (sourceList) {
                if (!lodash.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: core.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: core.Input }],
            bcacSelectedChange: [{ type: core.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: core.NgModule, args: [{
                        declarations: [BcacSourceGroupComponent],
                        imports: [
                            common.CommonModule,
                            select.NzSelectModule,
                            forms.FormsModule,
                            ngZorroAntd.NzToolTipModule
                        ],
                        exports: [BcacSourceGroupComponent]
                    },] }
        ];
        return BcacSourceGroupModule;
    }());

    exports.BcacSourceGroupComponent = BcacSourceGroupComponent;
    exports.BcacSourceGroupModule = BcacSourceGroupModule;

    Object.defineProperty(exports, '__esModule', { value: true });

})));
//# sourceMappingURL=bcac-lib-base-component-currency-bcac-source-group.umd.js.map
