import { Widget } from "@lumino/widgets";
export class WidgetAdapter extends Widget {
    constructor(_host, node) {
        super({ node });
        this._host = _host;
        this.addClass("hpcc-LuminoAdapter");
    }
    onCloseRequest(msg) {
        const cancelled = !this._host.$emit("closeRequest", this.node);
        if (!cancelled) {
            super.onCloseRequest(msg);
        }
    }
}
//# sourceMappingURL=widgetAdapter.js.map