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 JQueryQueryPanelWidget = /** @class */ (function (_super) {
    __extends(JQueryQueryPanelWidget, _super);
    function JQueryQueryPanelWidget(slot) {
        var _this = _super.call(this, slot) || this;
        _this.jqueryWrapper = jQuery(slot);
        _this.widgetType = "queryPanel";
        _this.group = WidgetGroup.Query;
        return _this;
    }
    JQueryQueryPanelWidget.prototype.init = function (context, options) {
        _super.prototype.init.call(this, context, options);
        this.jqueryWrapper.QueryPanel(options);
        this.jqueryWrapper.QueryPanel("setQuery", this.context.getQuery());
        this.jqueryWrapper.QueryPanel("setContext", this.context);
    };
    JQueryQueryPanelWidget.prototype.refreshCore = function () {
        this.jqueryWrapper.QueryPanel("refresh");
    };
    return JQueryQueryPanelWidget;
}(Widget));
export { JQueryQueryPanelWidget };
//# sourceMappingURL=jquery_query_panel_widget.js.map