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