import { Container, createOverrideContext } from "aurelia-framework";
import { I18N } from "aurelia-i18n";
import { Config } from "../../config";
import { UIInternal } from "../../utils/ui-internal";
var SideFilter = (function () {
    function SideFilter() {
        this.config = Container.instance.get(Config);
        this.i18n = Container.instance.get(I18N);
    }
    SideFilter.prototype.setupGuiSideFilter = function (el) {
        if (false == this.config.agGridConfig.showFilterBox) {
            return;
        }
        var html = '<template>' + this.setupContentGuiSideFilter() + '</template>';
        var sideFilter = UIInternal.compileTemplate(html, this, createOverrideContext(this));
        sideFilter.appendNodesTo(el);
        sideFilter.attached();
    };
    SideFilter.prototype.getGuiSideFilter = function (el) {
        this.setupGuiSideFilter(el);
    };
    return SideFilter;
}());
export { SideFilter };

//# sourceMappingURL=SideFilter.js.map
