import { ComponentStylingModel, ComponentStylingPropertiesControlComponent, genericPropertiesControlFor } from '@anglr/dynamic/layout-editor';
import { TextFieldModel } from './textField.model';
/**
 * Text field layout metadata
 */
export class TextFieldLayoutEditorMetadata {
    //######################### constructor #########################
    constructor() {
        //######################### public properties - implementation of LayoutEditorMetadataDescriptor #########################
        /**
         * @inheritdoc
         */
        this.metaInfo = {
            name: 'Text field',
            description: 'Text field',
            optionsMetadata: {
                propertiesMetadata: [
                    {
                        modelType: ComponentStylingModel,
                        propertiesControls: [
                            ComponentStylingPropertiesControlComponent,
                        ],
                    },
                    {
                        modelType: TextFieldModel,
                        propertiesControls: [
                            genericPropertiesControlFor(['label', 'placeholder', 'controlName']),
                        ],
                    },
                ],
            },
            defaultOptions: {
                label: 'Input label',
                placeholder: 'Placeholder',
            },
            group: 'Form fields'
        };
        Object.freeze(this);
    }
}
//# sourceMappingURL=textField.layoutMetadata.js.map