"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 dataSourceBase_service_1 = require("../dataSourceBase.service");
var ObservableDataSource = (function (_super) {
    __extends(ObservableDataSource, _super);
    function ObservableDataSource(dataSet$) {
        var _this = _super.call(this) || this;
        _this.countFilterGroups = true;
        _this.dataStream$ = dataSet$;
        return _this;
    }
    ObservableDataSource.prototype.init = function () {
        var _this = this;
        this._dataSet.next(null);
        this._rawDataSet.next(null);
        this._loadingDataSet.next(true);
        this.dataStream$.subscribe(function (data) {
            _this._rawDataSet.next(data);
            _this._loadingDataSet.next(!data);
            _this.processData();
        });
    };
    return ObservableDataSource;
}(dataSourceBase_service_1.DataSourceBase));
exports.ObservableDataSource = ObservableDataSource;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2JzZXJ2YWJsZURhdGFTb3VyY2Uuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIm9ic2VydmFibGVEYXRhU291cmNlLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBR0Esb0VBQTJEO0FBSzNEO0lBQXFELHdDQUF5QjtJQUc3RSw4QkFBWSxRQUFpQztRQUE3QyxZQUNDLGlCQUFPLFNBR1A7UUFGQSxLQUFJLENBQUMsaUJBQWlCLEdBQUcsSUFBSSxDQUFDO1FBQzlCLEtBQUksQ0FBQyxXQUFXLEdBQUcsUUFBUSxDQUFDOztJQUM3QixDQUFDO0lBRUQsbUNBQUksR0FBSjtRQUFBLGlCQVVDO1FBVEEsSUFBSSxDQUFDLFFBQVEsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUM7UUFDekIsSUFBSSxDQUFDLFdBQVcsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFD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