import { AXPEntityDynamicDialogService } from '@acorex/platform/layout/entity';
import * as i0 from '@angular/core';
import { inject, Injectable } from '@angular/core';

class AXMOverviewCommand {
    constructor() {
        this.entityBuilder = inject(AXPEntityDynamicDialogService);
    }
    async execute(input) {
        console.log(input.refId);
        const dialog = await this.entityBuilder.entity(input.refType).update(input.refId).mode('view')
            .field('promotion', 'signed', (f) => {
            f.customWidget('signature', {
            //path: 'signed',
            }).mode('edit');
        })
            .show();
        console.log(dialog.context());
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXMOverviewCommand, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
    static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXMOverviewCommand, providedIn: 'root' }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.4", ngImport: i0, type: AXMOverviewCommand, decorators: [{
            type: Injectable,
            args: [{
                    providedIn: 'root',
                }]
        }] });

export { AXMOverviewCommand };
//# sourceMappingURL=acorex-modules-workflow-management-overview.command-C0NWREXN.mjs.map
