import { Component, ChangeDetectionStrategy, inject } from '@angular/core';
import { LayoutComponentRendererSADirective, LAYOUT_COMPONENT_TRANSFORM } from '@anglr/dynamic/layout';
import { HostDisplayBlockStyle } from '@anglr/common';
import { CustomComponentSAComponent } from '../customComponent.component';
import { PlaceholderHandler } from '../../../services';
import * as i0 from "@angular/core";
/**
 * Component used for displaying custom component designer
 */
export class CustomComponentDesignerSAComponent extends CustomComponentSAComponent {
    //######################### public - overrides #########################
    /**
     * @inheritdoc
     */
    processCustomComponentData(name) {
        if (this.options) {
            this.options.name = name;
        }
    }
}
CustomComponentDesignerSAComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: CustomComponentDesignerSAComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
CustomComponentDesignerSAComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.4", type: CustomComponentDesignerSAComponent, isStandalone: true, selector: "custom-component-designer", providers: [
        {
            provide: LAYOUT_COMPONENT_TRANSFORM,
            useValue: null
        },
        {
            provide: CustomComponentSAComponent,
            useExisting: CustomComponentDesignerSAComponent,
        },
        {
            provide: PlaceholderHandler,
            useFactory: () => {
                return new PlaceholderHandler(CustomComponentSAComponent, inject(CustomComponentSAComponent));
            }
        },
    ], usesInheritance: true, ngImport: i0, template: "<ng-container [layoutComponentRenderer]=\"metadata\"></ng-container>", styles: [":host{display: block;}"], dependencies: [{ kind: "directive", type: LayoutComponentRendererSADirective, selector: "[layoutComponentRenderer]", inputs: ["layoutComponentRenderer", "layoutComponentRendererInjector", "layoutComponentRendererDisableTransformer"], outputs: ["layoutComponentRendererComponentChange", "componentElementChange"], exportAs: ["layoutComponentRenderer"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: CustomComponentDesignerSAComponent, decorators: [{
            type: Component,
            args: [{ selector: 'custom-component-designer', standalone: true, imports: [
                        LayoutComponentRendererSADirective,
                    ], providers: [
                        {
                            provide: LAYOUT_COMPONENT_TRANSFORM,
                            useValue: null
                        },
                        {
                            provide: CustomComponentSAComponent,
                            useExisting: CustomComponentDesignerSAComponent,
                        },
                        {
                            provide: PlaceholderHandler,
                            useFactory: () => {
                                return new PlaceholderHandler(CustomComponentSAComponent, inject(CustomComponentSAComponent));
                            }
                        },
                    ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container [layoutComponentRenderer]=\"metadata\"></ng-container>", styles: [":host{display: block;}"] }]
        }] });
//# sourceMappingURL=customComponentDesigner.component.js.map