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