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