"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RemoteSet = void 0;
var data_context_1 = require("../../data/data-context");
var aurelia_framework_1 = require("aurelia-framework");
var RemoteSet = (function () {
    function RemoteSet() {
        this.datacontext = aurelia_framework_1.Container.instance.get(data_context_1.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;
}());
exports.RemoteSet = RemoteSet;

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