{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "definitions": {
        "SelectOption": {
            "properties": {
                "label": {
                    "type": "string"
                },
                "value": {
                }
            },
            "required": [
                "label",
                "value"
            ],
            "type": "object"
        }
    },
    "description": "# drayman-number-field\n\nNumber field powered by [Angular Material](https://material.angular.io/) library.\n\n## Example of usage\n\n![](media://drayman-number-field.gif)\n\n```typescript\nmodule.exports = async ({ forceUpdate }) => {\n     let celsius;\n     let fahrenheit;\n     let typing = false;\n\n     // User started typing\n     const onValueChangeStart = async () => {\n         typing = true;\n         await forceUpdate();\n     }\n\n     // User stopped typing with some `value`\n     const onValueChange = async ({ value }) => {\n         typing = false;\n         fahrenheit = value;\n         celsius = (value - 32) / 1.8;\n         await forceUpdate();\n     }\n\n     return () => {\n\n         return [\n             <drayman-number-field\n                 value={fahrenheit}\n                 key=\"fahrenheit\"\n                 label=\"Temperature in Fahrenheit (°F)\"\n                 onValueChangeStart={onValueChangeStart}\n                 onValueChange={onValueChange}\n             />,\n             <html key=\"info\">\n                 {celsius && <p>{fahrenheit}°F = {celsius}°C</p>}\n                 <p>{typing ? `You are typing!` : `You aren't typing!`}</p>\n             </html>\n         ]\n     };\n}\n```",
    "properties": {
        "appearance": {
            "description": "Appearance style for the field.\nWether `outline` (default), `legacy`, `fill` or `standard`.",
            "enum": [
                "fill",
                "legacy",
                "outline",
                "standard"
            ],
            "type": "string"
        },
        "disabled": {
            "description": "Whether the control is disabled.",
            "type": "boolean"
        },
        "error": {
            "description": "Error text to be shown underneath the form field control.",
            "type": "string"
        },
        "helpText": {
            "description": "Hint text to be shown underneath the form field control.",
            "type": "string"
        },
        "label": {
            "description": "The floating label for a field.",
            "type": "string"
        },
        "onFocus": {
            "description": "Executed when autocomplete field is focused.",
            "type": "object"
        },
        "onValueChange": {
            "description": "Executed with an input value from user.",
            "type": "object"
        },
        "onValueChangeStart": {
            "description": "Executed when user starts typing.",
            "type": "object"
        },
        "placeholder": {
            "description": "The placeholder text.",
            "type": "string"
        },
        "suggestions": {
            "description": "Autocomplete suggestions.",
            "items": {
                "$ref": "#/definitions/SelectOption"
            },
            "type": "array"
        },
        "suggestionsPanelWidth": {
            "description": "Specify the width of the autocomplete panel. Can be any CSS sizing value, otherwise it will match the width of its host.",
            "type": [
                "string",
                "number"
            ]
        },
        "updateOnBlur": {
            "description": "Wether value of the field should be emitted when user is blurred out of the control.",
            "type": "boolean"
        },
        "value": {
            "description": "Value of the input.",
            "type": "number"
        }
    },
    "type": "object"
}

