"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SideFilter = void 0;
var aurelia_framework_1 = require("aurelia-framework");
var aurelia_i18n_1 = require("aurelia-i18n");
var config_1 = require("../../config");
var ui_internal_1 = require("../../utils/ui-internal");
var SideFilter = (function () {
    function SideFilter() {
        this.config = aurelia_framework_1.Container.instance.get(config_1.Config);
        this.i18n = aurelia_framework_1.Container.instance.get(aurelia_i18n_1.I18N);
    }
    SideFilter.prototype.setupGuiSideFilter = function (el) {
        if (false == this.config.agGridConfig.showFilterBox) {
            return;
        }
        var html = '<template>' + this.setupContentGuiSideFilter() + '</template>';
        var sideFilter = ui_internal_1.UIInternal.compileTemplate(html, this, (0, aurelia_framework_1.createOverrideContext)(this));
        sideFilter.appendNodesTo(el);
        sideFilter.attached();
    };
    SideFilter.prototype.getGuiSideFilter = function (el) {
        this.setupGuiSideFilter(el);
    };
    return SideFilter;
}());
exports.SideFilter = SideFilter;

//# sourceMappingURL=SideFilter.js.map
