{
    "description": {
        "author": "Salesforce",
        "text": [
            "Selector: lightning-textarea",
            "Represents the lightning-textarea Lightning web component.",
            "Get the field value and label text. Clear the field and enter text."
        ]
    },
    "methods": [
        {
            "name": "clearAndEnterText",
            "description": {
                "text": [
                    "Clears field text and sets field value"
                ],
                "return": "string"
            },
            "compose": [
                {
                    "element": "field",
                    "apply": "clear"
                },
                {
                    "element": "field",
                    "apply": "setText",
                    "args": [
                        {
                            "name": "text",
                            "type": "string"
                        }
                    ]
                }
            ]
        },
        {
            "name": "getValue",
            "description": {
                "text": [
                    "Get field text value"
                ],
                "return": "string"
            },
            "compose": [
                {
                    "element": "field",
                    "apply": "getValue"
                }
            ]
        },
        {
            "name": "getLabelText",
            "description": {
                "text": [
                    "Get label text value"
                ],
                "return": "string"
            },
            "compose": [
                {
                    "element": "label",
                    "apply": "getText"
                }
            ]
        },
        {
            "name": "hasFocus",
            "description": {
                "text": [
                    "Is field text in focus"
                ],
                "return": "boolean"
            },
            "compose": [
                {
                    "element": "field",
                    "apply": "isFocused"
                }
            ]
        },
        {
            "name": "isRequired",
            "description": {
                "text": [
                    "Is field required"
                ],
                "return": "boolean"
            },
            "compose": [
                {
                    "element": "required",
                    "apply": "isPresent"
                }
            ]
        },
        {
            "name": "isReadonly",
            "description": {
                "text": [
                    "Is field read only"
                ],
                "return": "boolean"
            },
            "compose": [
                {
                    "element": "readonlyField",
                    "apply": "isPresent"
                }
            ]
        }
    ],
    "shadow": {
        "elements": [
            {
                "name": "helptext",
                "type": "utam-lightning/pageObjects/helptext",
                "selector": {
                    "css": "lightning-helptext"
                },
                "public": true
            },
            {
                "name": "field",
                "selector": {
                    "css": "textarea"
                },
                "type": [
                    "clickable",
                    "editable",
                    "actionable"
                ]
            },
            {
                "name": "readonlyField",
                "selector": {
                    "css": "textarea[readonly]"
                },
                "type": [
                    "clickable",
                    "actionable"
                ]
            },
            {
                "name": "label",
                "selector": {
                    "css": "label"
                },
                "elements": [
                    {
                        "name": "required",
                        "selector": {
                            "css": ".slds-required"
                        }
                    }
                ]
            }
        ]
    }
}