import { NgModule } from '@angular/core';
import { DynamicLayoutModule } from '@anglr/dynamic/layout';
import { LayoutEditorSAComponent } from '../components';
import { provideLayoutEditor } from '../misc/utils';
import * as i0 from "@angular/core";
/**
 * Module contains components, directives, pipes for dynamic layout editor rendering
 */
export class DynamicLayoutEditorModule {
    //######################### public methods #########################
    /**
     * Creates DynamicLayoutEditorModule extended with providers
     * @param designerLayout - Indication whether provide extractor for layout designer types
     */
    static withProviders(designerLayout = true) {
        return {
            ngModule: DynamicLayoutEditorModule,
            providers: [
                provideLayoutEditor(designerLayout),
            ]
        };
    }
}
DynamicLayoutEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: DynamicLayoutEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
DynamicLayoutEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.4", ngImport: i0, type: DynamicLayoutEditorModule, imports: [LayoutEditorSAComponent], exports: [LayoutEditorSAComponent,
        DynamicLayoutModule] });
DynamicLayoutEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: DynamicLayoutEditorModule, imports: [LayoutEditorSAComponent, DynamicLayoutModule] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: DynamicLayoutEditorModule, decorators: [{
            type: NgModule,
            args: [{
                    imports: [
                        LayoutEditorSAComponent,
                    ],
                    exports: [
                        LayoutEditorSAComponent,
                        DynamicLayoutModule,
                    ],
                }]
        }] });
//# sourceMappingURL=dynamicLayoutEditor.module.js.map