export class KanbanClipboardController {
    constructor(host) {
        this.host = host;
        this._onCopy = async (_context, _kanbanSelection) => {
            // todo
            return true;
        };
        this._onPaste = (_context) => {
            // todo
            return true;
        };
        host.addController(this);
    }
    get readonly() {
        return this.host.view.readonly;
    }
    hostConnected() {
        this.host.disposables.add(this.host.handleEvent('copy', ctx => {
            const kanbanSelection = this.host.selectionController.selection;
            if (!kanbanSelection)
                return false;
            this._onCopy(ctx, kanbanSelection).catch(console.error);
            return true;
        }));
        this.host.disposables.add(this.host.handleEvent('paste', ctx => {
            if (this.readonly)
                return false;
            this._onPaste(ctx);
            return true;
        }));
    }
}
//# sourceMappingURL=clipboard.js.map