import { ComponentStylingModel, ComponentStylingPropertiesControlComponent } from '@anglr/dynamic/layout-editor';
/**
 * List block layout metadata
 */
export class ListBlockLayoutEditorMetadata {
    //######################### constructor #########################
    constructor() {
        //######################### public properties - implementation of LayoutEditorMetadataDescriptor #########################
        /**
         * @inheritdoc
         */
        this.metaInfo = {
            name: 'List',
            description: 'List block - displays template in array',
            group: 'Layout',
            optionsMetadata: {
                propertiesMetadata: [
                    {
                        modelType: ComponentStylingModel,
                        propertiesControls: [
                            ComponentStylingPropertiesControlComponent,
                        ],
                    },
                ],
            },
        };
        /**
         * @inheritdoc
         */
        this.addDescendant = (metadata, options) => {
            options.template = metadata;
        };
        /**
         * @inheritdoc
         */
        this.canDropMetadata = options => !(options === null || options === void 0 ? void 0 : options.template);
        /**
         * @inheritdoc
         */
        this.removeDescendant = (_, options) => {
            options.template = null;
        };
        Object.freeze(this);
    }
}
//# sourceMappingURL=listBlock.layoutMetadata.js.map