var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
import { Widget, WidgetGroup } from '@easyquery/core';
var JQueryFilterBarWidget = /** @class */ (function (_super) {
    __extends(JQueryFilterBarWidget, _super);
    function JQueryFilterBarWidget(slot) {
        var _this = _super.call(this, slot) || this;
        _this.jqueryWrapper = jQuery(slot);
        _this.widgetType = "filterBar";
        _this.group = WidgetGroup.Query;
        return _this;
    }
    JQueryFilterBarWidget.prototype.init = function (context, options) {
        _super.prototype.init.call(this, context, options);
        this.jqueryWrapper.FilterBar(options);
        this.jqueryWrapper.FilterBar("setQuery", this.context.getQuery());
        this.jqueryWrapper.FilterBar("setContext", this.context);
    };
    JQueryFilterBarWidget.prototype.refreshCore = function () {
        this.jqueryWrapper.FilterBar("refresh");
    };
    return JQueryFilterBarWidget;
}(Widget));
export { JQueryFilterBarWidget };
//# sourceMappingURL=jquery_filter_bar_widget.js.map