import { ComponentStylingModel, ComponentStylingPropertiesControlComponent, genericPropertiesControlFor } from '@anglr/dynamic/layout-editor';
import { RadioModel } from './radio.model';
import { RadioPropertiesControlSAComponent } from '../misc/components';
/**
 * Radio layout metadata
 */
export class RadioLayoutEditorMetadata {
    //######################### constructor #########################
    constructor() {
        //######################### public properties - implementation of LayoutEditorMetadataDescriptor #########################
        /**
         * @inheritdoc
         */
        this.metaInfo = {
            name: 'Radio',
            description: 'Radio',
            optionsMetadata: {
                propertiesMetadata: [
                    {
                        modelType: ComponentStylingModel,
                        propertiesControls: [
                            ComponentStylingPropertiesControlComponent,
                        ],
                    },
                    {
                        modelType: RadioModel,
                        propertiesControls: [
                            genericPropertiesControlFor(['controlName']),
                        ],
                    },
                    {
                        modelType: RadioModel,
                        propertiesControls: [
                            RadioPropertiesControlSAComponent,
                        ],
                    },
                ],
            },
            defaultOptions: {
                options: [
                    {
                        code: '1',
                        text: 'Text'
                    }
                ]
            },
            group: 'Form fields'
        };
        Object.freeze(this);
    }
}
//# sourceMappingURL=radio.layoutMetadata.js.map