import { ComponentStylingModel, ComponentStylingPropertiesControlComponent } from '@anglr/dynamic/layout-editor';
/**
 * Block layout metadata
 */
export class BlockLayoutEditorMetadata {
    //######################### constructor #########################
    constructor() {
        //######################### public properties - implementation of LayoutEditorMetadataDescriptor #########################
        /**
         * @inheritdoc
         */
        this.metaInfo = {
            name: 'Block',
            description: 'Block element, wraps content, allows custom styling',
            group: 'Layout',
            optionsMetadata: {
                propertiesMetadata: [
                    {
                        modelType: ComponentStylingModel,
                        propertiesControls: [
                            ComponentStylingPropertiesControlComponent,
                        ],
                    },
                ]
            },
        };
        /**
         * @inheritdoc
         */
        this.addDescendant = (metadata, options) => {
            options.content = metadata;
        };
        /**
         * @inheritdoc
         */
        this.canDropMetadata = options => !options?.content;
        /**
         * @inheritdoc
         */
        this.removeDescendant = (_, options) => {
            options.content = null;
        };
        Object.freeze(this);
    }
}
//# sourceMappingURL=block.layoutMetadata.js.map