import { Datacontext } from '../../data/data-context';
import { Container } from 'aurelia-framework';
var RemoteSet = (function () {
    function RemoteSet() {
        this.datacontext = Container.instance.get(Datacontext);
    }
    RemoteSet.prototype.init = function (params) {
        var _this = this;
        this.tableName = params.colDef.filterParams.tableName;
        this.fieldName = params.colDef.filterParams.fieldName;
        params.colDef.filterParams.values = function (p) {
            _this.datacontext.getDistinctPropertyValues(_this.tableName, _this.fieldName, false).then(function (results) {
                p.success(results);
            });
        };
    };
    RemoteSet.prototype.getGui = function () {
    };
    return RemoteSet;
}());
export { RemoteSet };

//# sourceMappingURL=remote-set.js.map
