"use strict";
var __extends = (this && this.__extends) || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var _ = require("lodash");
var asyncDataSource_service_1 = require("../asyncDataSource.service");
var DataServiceDataSource = (function (_super) {
    __extends(DataServiceDataSource, _super);
    function DataServiceDataSource(getDataSet, dataSourceProcessor, array) {
        var _this = _super.call(this, getDataSet, dataSourceProcessor, array) || this;
        _this.countFilterGroups = true;
        if (_.isFunction(getDataSet)) {
            _this.reload();
        }
        return _this;
    }
    return DataServiceDataSource;
}(asyncDataSource_service_1.AsyncDataSource));
exports.DataServiceDataSource = DataServiceDataSource;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YVNlcnZpY2VEYXRhU291cmNlLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkYXRhU2VydmljZURhdGFTb3VyY2Uuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSwwQkFBNEI7QUFNNUIsc0VBQWlHO0FBU2pHO0lBQXNELHlDQUEwQjtJQUMvRSwrQkFBWSxVQUEyQyxFQUNuRCxtQkFBNEMsRUFDNUMsS0FBNEI7UUFGaEMsWUFHQyxrQkFBTSxVQUFVLEVBQUUsbUJBQW1CLEVBQUUsS0FBSyxDQUFDLFNBTTdDO1FBTEEsS0FBSSxDQUFDLGlCQUFpQixHQUFHLElBQUksQ0FBQztRQUU5QixFQUFFLENBQUMsQ0FBQyxDQUFDLENBQUMsVUFBVSxDQUFDLFVBQVUsQ0FBQyxDQUFDLENBQUMsQ0FBQztZQUM5QixLQUFJLENBQUMsTUFBTSxFQUFFLENBQUM7UUFDZixDQUFDOztJQUNGLENBQUM7SUFDRiw0QkFBQztBQUFELENBQUMsQUFYRCxDQUFzRCx5Q0FBZSxHQVdwRTtBQVhZLHNEQUFxQiJ9